summaryrefslogtreecommitdiff
path: root/src/newgrf_generic.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2012-01-03 00:45:22 +0000
committeryexo <yexo@openttd.org>2012-01-03 00:45:22 +0000
commit5f79b4c5d1eb364e5e8ba6291bb522d45af4c115 (patch)
tree246ee542b805e02c6d2ee1aaa7cb5d5f9a45ed4b /src/newgrf_generic.cpp
parentb9e19cc6c15df0e66152d46df767b6370b89a9db (diff)
downloadopenttd-5f79b4c5d1eb364e5e8ba6291bb522d45af4c115.tar.xz
(svn r23724) -Codechange: split of the check to see if ambient sounds are enabled to a header file allowing compilers to inline that check
Diffstat (limited to 'src/newgrf_generic.cpp')
-rw-r--r--src/newgrf_generic.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/newgrf_generic.cpp b/src/newgrf_generic.cpp
index 7f85992c9..0b098a934 100644
--- a/src/newgrf_generic.cpp
+++ b/src/newgrf_generic.cpp
@@ -235,8 +235,6 @@ void AmbientSoundEffectCallback(TileIndex tile)
{
assert(IsTileType(tile, MP_CLEAR) || IsTileType(tile, MP_TREES) || IsTileType(tile, MP_WATER));
- /* Only run callback if enabled. */
- if (!HasGrfMiscBit(GMB_AMBIENT_SOUND_CALLBACK)) return;
/* Only run every 1/200-th time. */
uint32 r; // Save for later
if (!Chance16R(1, 200, r)) return;