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 /aircraft_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 '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; |