(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

This commit is contained in:
rubidium
2014-09-21 08:19:32 +00:00
parent 2361aaf601
commit c9d7e89138
2 changed files with 19 additions and 28 deletions

View File

@@ -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);
}