diff options
author | michi_cc <michi_cc@openttd.org> | 2011-11-04 22:59:23 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2011-11-04 22:59:23 +0000 |
commit | 3e016e4254c6b8b558c50e7c66bc01ac6d118f4b (patch) | |
tree | 444a45868eac4742434bb34f00b1c4d44916271e /src/water_cmd.cpp | |
parent | c8857d467903b9819c82d95a8967f53a55765db0 (diff) | |
download | openttd-3e016e4254c6b8b558c50e7c66bc01ac6d118f4b.tar.xz |
(svn r23116) -Fix (r23114): Ambient sound effect callback was called for unsupported tile types.
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r-- | src/water_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index 18b791b42..bdf142a09 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -1071,7 +1071,7 @@ static void DoDryUp(TileIndex tile) */ void TileLoop_Water(TileIndex tile) { - AmbientSoundEffectCallback(tile); + if (IsTileType(tile, MP_WATER)) AmbientSoundEffectCallback(tile); switch (GetFloodingBehaviour(tile)) { case FLOOD_ACTIVE: |