summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-12 15:53:32 +0000
committertron <tron@openttd.org>2005-02-12 15:53:32 +0000
commit6b83a05adabaf5ab47d981b83d8bbf2c7cfc59c3 (patch)
treeca1e02fe05c2c7241836503d7f08bb634c442bfd /vehicle.c
parentac758b6875ac1c95dc2ec0fadbb5b7d5ef7e8c67 (diff)
downloadopenttd-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vehicle.c b/vehicle.c
index 2ed6bf626..1eee0db5c 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -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);
}