@@ -2005,12 +2005,23 @@ void SetTileSelectBigSize(int ox, int oy
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.
bool TileHighlightData::IsDraggingDiagonal()
return (this->place_mode & HT_DIAGONAL) != 0 && _ctrl_pressed && _left_button_down;