summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-17 17:17:48 +0000
committerrubidium <rubidium@openttd.org>2009-05-17 17:17:48 +0000
commit9c24e2bb8fdc29620ea8d73ecec9c93e8e3b3e53 (patch)
tree1b503e6d6551d4e0b93ceeaa187e88e3797ea7af /src/roadveh_cmd.cpp
parente3bd95e7b6694a68a73bbb2649d6f96092e2e313 (diff)
downloadopenttd-9c24e2bb8fdc29620ea8d73ecec9c93e8e3b3e53.tar.xz
(svn r16340) -Codechange: introduce SoundID (uint16) and use that instead of SoundFX, which was used as a byte and uint16 at different places, when the uint16 sound ID is meant.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 8dcb8572e..c3d8d58c9 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -690,7 +690,7 @@ TileIndex RoadVehicle::GetOrderStationLocation(StationID station)
static void StartRoadVehSound(const Vehicle *v)
{
if (!PlayVehicleSound(v, VSE_START)) {
- SoundFx s = RoadVehInfo(v->engine_type)->sfx;
+ SoundID s = RoadVehInfo(v->engine_type)->sfx;
if (s == SND_19_BUS_START_PULL_AWAY && (v->tick_counter & 3) == 0)
s = SND_1A_BUS_START_PULL_AWAY_WITH_HORN;
SndPlayVehicleFx(s, v);