forked from mirror/OpenTTD
(svn r21667) -Codechange: Introduce _thd.Reset().
This commit is contained in:
@@ -2007,6 +2007,17 @@ static HighLightStyle GetAutorailHT(int x, int y)
|
||||
return HT_RAIL | _autorail_piece[x & TILE_UNIT_MASK][y & TILE_UNIT_MASK];
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
|
Reference in New Issue
Block a user