diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 10:23:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 10:23:48 +0000 |
commit | ecbc56a67711bfc37d751f9c3bff2a464ea03564 (patch) | |
tree | 59bf90cf6155c7940d6c56735a2cfd491e300bd3 /src/water_cmd.cpp | |
parent | 2ed0f93bfbd27ba4b4dc3e590556ffae6d9b9338 (diff) | |
download | openttd-ecbc56a67711bfc37d751f9c3bff2a464ea03564.tar.xz |
(svn r23094) -Codechange: add a default NULL to GetFoundationSlope and use it
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 5cf793c1c..42c27239c 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -1090,7 +1090,7 @@ void TileLoop_Water(TileIndex tile) break; case FLOOD_DRYUP: { - Slope slope_here = GetFoundationPixelSlope(tile, NULL) & ~SLOPE_HALFTILE_MASK & ~SLOPE_STEEP; + Slope slope_here = GetFoundationSlope(tile) & ~SLOPE_HALFTILE_MASK & ~SLOPE_STEEP; uint dir; FOR_EACH_SET_BIT(dir, _flood_from_dirs[slope_here]) { TileIndex dest = AddTileIndexDiffCWrap(tile, TileIndexDiffCByDir((Direction)dir)); |