summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r--src/train_cmd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index a20769711..4966c40f6 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -163,8 +163,8 @@ void Train::UpdateVisualEffect(bool allow_power_change)
}
/* Check powered wagon / visual effect callback */
- if (HasBit(e->info.callback_mask, CBM_TRAIN_WAGON_POWER)) {
- uint16 callback = GetVehicleCallback(CBID_TRAIN_WAGON_POWER, 0, 0, this->engine_type, this);
+ if (HasBit(e->info.callback_mask, CBM_VEHICLE_VISUAL_EFFECT)) {
+ uint16 callback = GetVehicleCallback(CBID_VEHICLE_VISUAL_EFFECT, 0, 0, this->engine_type, this);
if (callback != CALLBACK_FAILED) this->tcache.cached_vis_effect = GB(callback, 0, 8);
}
@@ -2032,7 +2032,7 @@ static void HandleLocomotiveSmokeCloud(const Train *v)
}
} while ((v = v->Next()) != NULL);
- if (sound) PlayVehicleSound(u, VSE_TRAIN_EFFECT);
+ if (sound) PlayVehicleSound(u, VSE_VISUAL_EFFECT);
}
void Train::PlayLeaveStationSound() const