Changeset - r28201:f5e2a821fac2
[Not reviewed]
master
0 1 0
Tyler Trahan - 13 months ago 2023-11-01 19:46:50
tyler@tylertrahan.com
Codechange: Don't use a magic number for the number of DiagDirections
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -249,7 +249,7 @@ static TownDrawTileProc * const _town_dr
 
 */
 
static inline DiagDirection RandomDiagDir()
 
{
 
	return (DiagDirection)(3 & Random());
 
	return (DiagDirection)(RandomRange(DIAGDIR_END));
 
}
 

	
 
/**
0 comments (0 inline, 0 general)