1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 09:29:10 +00:00

Codechange: Don't use a magic number for the number of DiagDirections

This commit is contained in:
Tyler Trahan
2023-11-01 15:46:50 -04:00
parent 2dad9263d7
commit 4181d3c1ff

@@ -249,7 +249,7 @@ static TownDrawTileProc * const _town_draw_tile_procs[1] = {
*/ */
static inline DiagDirection RandomDiagDir() static inline DiagDirection RandomDiagDir()
{ {
return (DiagDirection)(3 & Random()); return (DiagDirection)(RandomRange(DIAGDIR_END));
} }
/** /**