From 0cc45ecd8edb44a860470cd906f89ccb3fcd6203 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 1 Oct 2005 12:43:34 +0000 Subject: (svn r3003) Change int, uint, uin16 and byte to EngineID where appropriate, plus some related changes (mostly casts) --- ship_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ship_cmd.c') 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; -- cgit v1.2.3-54-g00ecf