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 | 0cc45ecd8edb44a860470cd906f89ccb3fcd6203 (patch) | |
tree | 6eb5ead43a3cbbdd3042baf3269401e60838aebd /aircraft_cmd.c | |
parent | eb1d025d082163377b1d22b4e32d5a998544abe7 (diff) | |
download | openttd-0cc45ecd8edb44a860470cd906f89ccb3fcd6203.tar.xz |
(svn r3003) Change int, uint, uin16 and byte to EngineID where appropriate, plus some related changes (mostly casts)
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r-- | aircraft_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c index 55568c474..948d27742 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -102,7 +102,7 @@ int GetAircraftImage(const Vehicle *v, byte direction) return direction + _aircraft_sprite[spritenum]; } -void DrawAircraftEngine(int x, int y, int engine, uint32 image_ormod) +void DrawAircraftEngine(int x, int y, EngineID engine, uint32 image_ormod) { int spritenum = AircraftVehInfo(engine)->image_index; int sprite = (6 + _aircraft_sprite[spritenum]); @@ -237,7 +237,7 @@ int32 CmdBuildAircraft(int x, int y, uint32 flags, uint32 p1, uint32 p2) v->max_speed = avi->max_speed; v->acceleration = avi->acceleration; - v->engine_type = (byte)p1; + v->engine_type = p1; v->subtype = (avi->subtype & 1) == 0 ? 0 : 2; v->value = value; |