summaryrefslogtreecommitdiff
path: root/src/newgrf_engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_engine.h')
-rw-r--r--src/newgrf_engine.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/newgrf_engine.h b/src/newgrf_engine.h
index 91a15f4a7..edc8b29bd 100644
--- a/src/newgrf_engine.h
+++ b/src/newgrf_engine.h
@@ -19,11 +19,9 @@
#include "engine_type.h"
#include "gfx_type.h"
-enum {
- TRAININFO_DEFAULT_VEHICLE_WIDTH = 29,
- ROADVEHINFO_DEFAULT_VEHICLE_WIDTH = 28,
- VEHICLEINFO_FULL_VEHICLE_WIDTH = 32,
-};
+static const uint TRAININFO_DEFAULT_VEHICLE_WIDTH = 29;
+static const uint ROADVEHINFO_DEFAULT_VEHICLE_WIDTH = 28;
+static const uint VEHICLEINFO_FULL_VEHICLE_WIDTH = 32;
void SetWagonOverrideSprites(EngineID engine, CargoID cargo, const struct SpriteGroup *group, EngineID *train_id, uint trains);
const SpriteGroup *GetWagonOverrideSpriteSet(EngineID engine, CargoID cargo, EngineID overriding_engine);