diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 11:52:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 11:52:19 +0000 |
commit | 2a2c102b0b173d6ebcfb90291eb56e82c4e935a7 (patch) | |
tree | eea14ef6e9fcafd4cb4fb4a1a4aec8cbf1f928b7 /src/sound.cpp | |
parent | 459c9523e8acdf314ce697460f4768eec228daac (diff) | |
download | openttd-2a2c102b0b173d6ebcfb90291eb56e82c4e935a7.tar.xz |
(svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z related variables
Diffstat (limited to 'src/sound.cpp')
-rw-r--r-- | src/sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound.cpp b/src/sound.cpp index f5016739c..932ec8f5b 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -255,7 +255,7 @@ void SndPlayTileFx(SoundID sound, TileIndex tile) /* emits sound from center of the tile */ int x = min(MapMaxX() - 1, TileX(tile)) * TILE_SIZE + TILE_SIZE / 2; int y = min(MapMaxY() - 1, TileY(tile)) * TILE_SIZE - TILE_SIZE / 2; - uint z = (y < 0 ? 0 : GetSlopePixelZ(x, y)); + int z = (y < 0 ? 0 : GetSlopePixelZ(x, y)); Point pt = RemapCoords(x, y, z); y += 2 * TILE_SIZE; Point pt2 = RemapCoords(x, y, GetSlopePixelZ(x, y)); |