diff options
author | tron <tron@openttd.org> | 2005-10-01 12:43:34 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-01 12:43:34 +0000 |
commit | 0ad3902acfe4a10d1ef31e43765cbcd7cf82eb1e (patch) | |
tree | 6eb5ead43a3cbbdd3042baf3269401e60838aebd /ship_cmd.c | |
parent | 42db6338505959e6f1d59986615944cc1fb0ca86 (diff) | |
download | openttd-0ad3902acfe4a10d1ef31e43765cbcd7cf82eb1e.tar.xz |
(svn r3003) Change int, uint, uin16 and byte to EngineID where appropriate, plus some related changes (mostly casts)
Diffstat (limited to 'ship_cmd.c')
-rw-r--r-- | ship_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ship_cmd.c b/ship_cmd.c index ac67056ca..aa42a7b2b 100644 --- a/ship_cmd.c +++ b/ship_cmd.c @@ -28,7 +28,7 @@ static byte GetTileShipTrackStatus(TileIndex tile) return r | r >> 8; } -void DrawShipEngine(int x, int y, int engine, uint32 image_ormod) +void DrawShipEngine(int x, int y, EngineID engine, uint32 image_ormod) { int spritenum = ShipVehInfo(engine)->image_index; @@ -905,7 +905,7 @@ int32 CmdBuildShip(int x, int y, uint32 flags, uint32 p1, uint32 p2) v->last_station_visited = INVALID_STATION; v->max_speed = svi->max_speed; - v->engine_type = (byte)p1; + v->engine_type = p1; e = GetEngine(p1); v->reliability = e->reliability; |