Replace magic number with define

This commit is contained in:
Pasi Kallinen
2026-03-18 17:12:01 +02:00
parent 8d33cafb3e
commit 18cb293766

View File

@@ -1119,7 +1119,7 @@ mcalcmove(
if (mon->mspeed == MSLOW) {
/* slow-monster effects work better against faster monsters: they
lose 1/3 of their speed below 12 but 2/3 of their speed above */
if (mmove < 12)
if (mmove < NORMAL_SPEED)
mmove = (2 * mmove + 1) / 3;
else
mmove = 4 + (mmove / 3);