summaryrefslogtreecommitdiff
path: root/ship_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-01 12:43:34 +0000
committertron <tron@openttd.org>2005-10-01 12:43:34 +0000
commit0cc45ecd8edb44a860470cd906f89ccb3fcd6203 (patch)
tree6eb5ead43a3cbbdd3042baf3269401e60838aebd /ship_cmd.c
parenteb1d025d082163377b1d22b4e32d5a998544abe7 (diff)
downloadopenttd-0cc45ecd8edb44a860470cd906f89ccb3fcd6203.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.c4
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;