Set selection tiles dirty when erasing a queued command.
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
#include "core/backup_type.hpp"
|
#include "core/backup_type.hpp"
|
||||||
#include "object_base.h"
|
#include "object_base.h"
|
||||||
#include "string_func.h"
|
#include "string_func.h"
|
||||||
|
#include "tilehighlight_func.h"
|
||||||
|
|
||||||
#include "table/strings.h"
|
#include "table/strings.h"
|
||||||
|
|
||||||
@@ -596,7 +597,8 @@ void EraseQueuedTouchCommand()
|
|||||||
_is_queued_command = false;
|
_is_queued_command = false;
|
||||||
extern void UpdateTouchscreenBar();
|
extern void UpdateTouchscreenBar();
|
||||||
UpdateTouchscreenBar();
|
UpdateTouchscreenBar();
|
||||||
//reset selection of tiles
|
SetSelectionTilesDirty();
|
||||||
|
_thd.Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ void VpSetPresizeRange(TileIndex from, TileIndex to);
|
|||||||
void VpSetPlaceSizingLimit(int limit);
|
void VpSetPlaceSizingLimit(int limit);
|
||||||
|
|
||||||
void UpdateTileSelection();
|
void UpdateTileSelection();
|
||||||
|
void SetSelectionTilesDirty();
|
||||||
|
|
||||||
extern TileHighlightData _thd;
|
extern TileHighlightData _thd;
|
||||||
|
|
||||||
|
|||||||
@@ -1717,7 +1717,7 @@ void MarkTileDirtyByTile(TileIndex tile)
|
|||||||
*
|
*
|
||||||
* @ingroup dirty
|
* @ingroup dirty
|
||||||
*/
|
*/
|
||||||
static void SetSelectionTilesDirty()
|
void SetSelectionTilesDirty()
|
||||||
{
|
{
|
||||||
int x_size = _thd.size.x;
|
int x_size = _thd.size.x;
|
||||||
int y_size = _thd.size.y;
|
int y_size = _thd.size.y;
|
||||||
|
|||||||
Reference in New Issue
Block a user