diff options
author | smatz <smatz@openttd.org> | 2009-04-25 22:04:13 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-04-25 22:04:13 +0000 |
commit | f09807bfe19c638fb440abd133e13aaa73a589f9 (patch) | |
tree | a091043feb428400487415f7b427afd525fc7f58 /src/dummy_land.cpp | |
parent | a36ab04d5dd345a020ab4168de11db8f7ea087cb (diff) | |
download | openttd-f09807bfe19c638fb440abd133e13aaa73a589f9.tar.xz |
(svn r16146) -Codechange: use faster algorithm in SetSelectionTilesDirty(). Up to 1000 times faster when large area is selected
Diffstat (limited to 'src/dummy_land.cpp')
-rw-r--r-- | src/dummy_land.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dummy_land.cpp b/src/dummy_land.cpp index bf0efde4a..355b41dfc 100644 --- a/src/dummy_land.cpp +++ b/src/dummy_land.cpp @@ -6,6 +6,7 @@ #include "tile_cmd.h" #include "command_func.h" #include "viewport_func.h" +#include "tile_map.h" #include "table/strings.h" #include "table/sprites.h" @@ -18,7 +19,7 @@ static void DrawTile_Dummy(TileInfo *ti) static uint GetSlopeZ_Dummy(TileIndex tile, uint x, uint y) { - return 0; + return TilePixelHeight(tile); } static Foundation GetFoundation_Dummy(TileIndex tile, Slope tileh) |