diff options
author | rubidium <rubidium@openttd.org> | 2010-11-18 13:51:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-18 13:51:54 +0000 |
commit | 31c0ba9d291e08de226489453e547b88a2928a98 (patch) | |
tree | fcd5d84a83cbff66aa5657623f920a48bf96b15d | |
parent | 6878a0ffd7e4613ae9cf45888529a6033375ed04 (diff) | |
download | openttd-31c0ba9d291e08de226489453e547b88a2928a98.tar.xz |
(svn r21230) -Fix/Change/Feature: [NewGRF] Make positioning of diesel fumes and electric sparks actually work (Hirundo).
-rw-r--r-- | src/train_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index df787ed09..a20769711 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -2008,7 +2008,7 @@ static void HandleLocomotiveSmokeCloud(const Train *v) * - in Chance16 - the last value is 512 / 2^smoke_amount (max. smoke when 128 = smoke_amount of 2). */ if (u->cur_speed < (u->vcache.cached_max_speed >> (2 >> _settings_game.vehicle.smoke_amount)) && Chance16((64 - ((u->cur_speed << 5) / u->vcache.cached_max_speed) + (32 >> (u->acc_cache.cached_power >> 10)) - (32 >> (u->acc_cache.cached_weight >> 9))), (512 >> _settings_game.vehicle.smoke_amount))) { - CreateEffectVehicleRel(v, 0, 0, 10, EV_DIESEL_SMOKE); + CreateEffectVehicleRel(v, x, y, 10, EV_DIESEL_SMOKE); sound = true; } break; @@ -2022,7 +2022,7 @@ static void HandleLocomotiveSmokeCloud(const Train *v) * - in Chance16 the last value is 360 / 2^smoke_amount (max. sparks when 90 = smoke_amount of 2). */ if (GB(v->tick_counter, 0, 2) == 0 && Chance16((6 - ((u->cur_speed << 2) / u->vcache.cached_max_speed)), (360 >> _settings_game.vehicle.smoke_amount))) { - CreateEffectVehicleRel(v, 0, 0, 10, EV_ELECTRIC_SPARK); + CreateEffectVehicleRel(v, x, y, 10, EV_ELECTRIC_SPARK); sound = true; } break; |