Set selection tiles dirty when erasing a queued command.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
@@ -30,6 +30,7 @@ void VpSetPresizeRange(TileIndex from, TileIndex to);
|
||||
void VpSetPlaceSizingLimit(int limit);
|
||||
|
||||
void UpdateTileSelection();
|
||||
void SetSelectionTilesDirty();
|
||||
|
||||
extern TileHighlightData _thd;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user