1
0
Fork 0

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

pull/11389/head
Tyler Trahan 2023-11-01 15:46:50 -04:00
parent d3cf1bb9f1
commit 2e1489dc49
1 changed files with 1 additions and 1 deletions

View File

@ -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));
} }
/** /**