diff options
author | tron <tron@openttd.org> | 2005-02-12 15:53:32 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-12 15:53:32 +0000 |
commit | 6b83a05adabaf5ab47d981b83d8bbf2c7cfc59c3 (patch) | |
tree | ca1e02fe05c2c7241836503d7f08bb634c442bfd /vehicle.c | |
parent | ac758b6875ac1c95dc2ec0fadbb5b7d5ef7e8c67 (diff) | |
download | openttd-6b83a05adabaf5ab47d981b83d8bbf2c7cfc59c3.tar.xz |
(svn r1863) Give the effect vehicle type enums more descriptive names and use the enum as parameter type for CreateEffectVehicle*()
-Fix: [1116619] Generate the correct smoke type for diesel trains
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1104,7 +1104,7 @@ static EffectTickProc * const _effect_tick_procs[] = { }; -Vehicle *CreateEffectVehicle(int x, int y, int z, int type) +Vehicle *CreateEffectVehicle(int x, int y, int z, EffectVehicle type) { Vehicle *v; @@ -1129,12 +1129,12 @@ Vehicle *CreateEffectVehicle(int x, int y, int z, int type) return v; } -Vehicle *CreateEffectVehicleAbove(int x, int y, int z, int type) +Vehicle *CreateEffectVehicleAbove(int x, int y, int z, EffectVehicle type) { return CreateEffectVehicle(x, y, GetSlopeZ(x, y) + z, type); } -Vehicle *CreateEffectVehicleRel(Vehicle *v, int x, int y, int z, int type) +Vehicle *CreateEffectVehicleRel(const Vehicle *v, int x, int y, int z, EffectVehicle type) { return CreateEffectVehicle(v->x_pos + x, v->y_pos + y, v->z_pos + z, type); } |