Set selection tiles dirty when erasing a queued command.

This commit is contained in:
Juanjo
2013-10-14 17:55:30 +00:00
committed by pelya
parent 4f60841795
commit f70dbfdc32
3 changed files with 5 additions and 2 deletions

View File

@@ -27,6 +27,7 @@
#include "core/backup_type.hpp"
#include "object_base.h"
#include "string_func.h"
#include "tilehighlight_func.h"
#include "table/strings.h"
@@ -596,7 +597,8 @@ void EraseQueuedTouchCommand()
_is_queued_command = false;
extern void UpdateTouchscreenBar();
UpdateTouchscreenBar();
//reset selection of tiles
SetSelectionTilesDirty();
_thd.Reset();
}
/*!

View File

@@ -30,6 +30,7 @@ void VpSetPresizeRange(TileIndex from, TileIndex to);
void VpSetPlaceSizingLimit(int limit);
void UpdateTileSelection();
void SetSelectionTilesDirty();
extern TileHighlightData _thd;

View File

@@ -1717,7 +1717,7 @@ void MarkTileDirtyByTile(TileIndex tile)
*
* @ingroup dirty
*/
static void SetSelectionTilesDirty()
void SetSelectionTilesDirty()
{
int x_size = _thd.size.x;
int y_size = _thd.size.y;