diff options
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r-- | src/viewport.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index e5e398eb8..f5848a1b9 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -2008,6 +2008,17 @@ static HighLightStyle GetAutorailHT(int x, int y) } /** + * Reset tile highlighting. + */ +void TileHighlightData::Reset() +{ + this->pos.x = 0; + this->pos.y = 0; + this->new_pos.x = 0; + this->new_pos.y = 0; +} + +/** * Is the user dragging a 'diagonal rectangle'? * @return User is dragging a rotated rectangle. */ |