From 398418b8fa23ab59f5fc027a7dd6aeba9da4d7bb Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 13 May 2010 09:44:44 +0000 Subject: (svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int --- src/station_map.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/station_map.h') diff --git a/src/station_map.h b/src/station_map.h index 060457d15..ef4e243e1 100644 --- a/src/station_map.h +++ b/src/station_map.h @@ -33,10 +33,8 @@ static inline StationID GetStationIndex(TileIndex t) } -enum { - GFX_DOCK_BASE_WATER_PART = 4, - GFX_TRUCK_BUS_DRIVETHROUGH_OFFSET = 4, -}; +static const int GFX_DOCK_BASE_WATER_PART = 4; +static const int GFX_TRUCK_BUS_DRIVETHROUGH_OFFSET = 4; /** * Get the station type of this tile -- cgit v1.2.3-54-g00ecf