mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-26 00:45:35 +00:00
Codechange: make Axis a scoped enum
This commit is contained in:
committed by
Peter Nelson
parent
c0cb8b74e1
commit
c74431e734
+1
-1
@@ -819,7 +819,7 @@ static bool TryBuildCoastLighthouse()
|
||||
int perimeter = (GB(r, 16, 16) % (2 * (maxx + maxy))) - maxy;
|
||||
DiagDirection dir;
|
||||
for (dir = DIAGDIR_NE; perimeter > 0; dir++) {
|
||||
perimeter -= (DiagDirToAxis(dir) == AXIS_X) ? maxx : maxy;
|
||||
perimeter -= (DiagDirToAxis(dir) == Axis::X) ? maxx : maxy;
|
||||
}
|
||||
|
||||
TileIndex tile;
|
||||
|
||||
Reference in New Issue
Block a user