summaryrefslogtreecommitdiff
path: root/src/void_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-09-21 08:19:32 +0000
committerrubidium <rubidium@openttd.org>2014-09-21 08:19:32 +0000
commitc9d7e89138c7e8e2a65c455e50338ba99f195753 (patch)
tree6c5237fa53b9f97f2a907d27ed894c0031029ae0 /src/void_cmd.cpp
parent2361aaf601e4355986e607e525a75377bf754de8 (diff)
downloadopenttd-c9d7e89138c7e8e2a65c455e50338ba99f195753.tar.xz
(svn r26870) -Fix (r15190): since freeform edges the 'tile height' at southern edge * 8 pixels just 'south' of the edge tile would not be drawn and would as a result not be refreshed causing artefacts to remain there. This adds a virtual slope to level 0 so it can be redrawn appropriately. Loosely based on patch by ic111
Diffstat (limited to 'src/void_cmd.cpp')
-rw-r--r--src/void_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/void_cmd.cpp b/src/void_cmd.cpp
index ea918b96a..ffe54df99 100644
--- a/src/void_cmd.cpp
+++ b/src/void_cmd.cpp
@@ -13,6 +13,7 @@
#include "tile_cmd.h"
#include "command_func.h"
#include "viewport_func.h"
+#include "slope_func.h"
#include "table/strings.h"
#include "table/sprites.h"
@@ -21,7 +22,7 @@
static void DrawTile_Void(TileInfo *ti)
{
- DrawGroundSprite(SPR_SHADOW_CELL, PAL_NONE);
+ DrawGroundSprite(SPR_FLAT_BARE_LAND + SlopeToSpriteOffset(ti->tileh), PALETTE_ALL_BLACK);
}