Magic-number elimination.
This commit is contained in:
parent
00c2182d9b
commit
67a887f432
3 changed files with 2 additions and 9 deletions
2
main.c
2
main.c
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue