1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-22 11:44:17 +01:00

Codechange: Expand the single usage of the macro CLRBITS.

This commit is contained in:
frosch
2025-04-17 13:02:45 +02:00
committed by frosch
parent d97936e77a
commit 7cbf4f5560
2 changed files with 1 additions and 13 deletions

View File

@@ -540,7 +540,7 @@ static CommandCost RemoveRoad(TileIndex tile, DoCommandFlags flags, RoadBits pie
static CommandCost CheckRoadSlope(Slope tileh, RoadBits *pieces, RoadBits existing, RoadBits other)
{
/* Remove already build pieces */
CLRBITS(*pieces, existing);
*pieces &= ~existing;
/* If we can't build anything stop here */
if (*pieces == ROAD_NONE) return CMD_ERROR;