(svn r3003) Change int, uint, uin16 and byte to EngineID where appropriate, plus some related changes (mostly casts)

This commit is contained in:
tron
2005-10-01 12:43:34 +00:00
parent eb1d025d08
commit 0cc45ecd8e
12 changed files with 82 additions and 83 deletions

View File

@@ -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;