Fix: Data races on cursor state in OpenGL backends
[openttd-github.git] / src / road_internal.h
blobf0062100a582e13073cc26d7c11d7b80bf46ab0b
1 /*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
8 /** @file road_internal.h Functions used internally by the roads. */
10 #ifndef ROAD_INTERNAL_H
11 #define ROAD_INTERNAL_H
13 #include "tile_cmd.h"
14 #include "road_type.h"
16 RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb);
18 CommandCost CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, RoadTramType rtt, DoCommandFlag flags, bool town_check = true);
20 void DrawRoadCatenary(const TileInfo *ti);
22 #endif /* ROAD_INTERNAL_H */