Magic-number elimination.

This commit is contained in:
Eric S. Raymond 2022-04-19 17:07:46 -04:00
parent 00c2182d9b
commit 67a887f432
3 changed files with 2 additions and 9 deletions

2
main.c
View file

@ -656,7 +656,7 @@ static void playermove(int motion)
/* Look for a way to fulfil the motion verb passed in - travel_entry indexes
* the beginning of the motion entries for here (game.loc). */
for (;;) {
if (T_TERMINATE(travel[travel_entry]) ||
if ((travel[travel_entry].motion == HERE) ||
travel[travel_entry].motion == motion)
break;
if (travel[travel_entry].stop) {