diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-10-05 22:02:27 +0200 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-12-16 22:28:32 +0100 |
commit | 33ca4f2b9950d98fed902962c847833667ccca9f (patch) | |
tree | 503825bff107d7a296c4bf7a0c6e64bd957e0454 /src/table | |
parent | 5ddfdc8516e35c4f5de2613692d104486151171b (diff) | |
download | openttd-33ca4f2b9950d98fed902962c847833667ccca9f.tar.xz |
Codechange: Let the compile generate the master command table out of templated command traits.
This is using a non-intrusive type-traits like templated system, which
allows compile-time validation that the command table and the command
enum match up.
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/table/train_sprites.h (renamed from src/table/train_cmd.h) | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/table/CMakeLists.txt b/src/table/CMakeLists.txt index c4043681b..3a615135e 100644 --- a/src/table/CMakeLists.txt +++ b/src/table/CMakeLists.txt @@ -34,7 +34,7 @@ add_files( town_land.h townname.h track_land.h - train_cmd.h + train_sprites.h tree_land.h unicode.h water_land.h diff --git a/src/table/train_cmd.h b/src/table/train_sprites.h index f9419990b..5811ec7f3 100644 --- a/src/table/train_cmd.h +++ b/src/table/train_sprites.h @@ -5,7 +5,7 @@ * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. */ -/** @file train_cmd.h Sprites to use for trains. */ +/** @file train_sprites.h Sprites to use for trains. */ static const SpriteID _engine_sprite_base[] = { 0x0B59, 0x0B61, 0x0B69, 0x0BE1, 0x0B71, 0x0B75, 0x0B7D, 0x0B7D, |