forked from mirror/OpenTTD
(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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user