Magic-number elimination.
This commit is contained in:
parent
d46407d327
commit
4c100261c4
2 changed files with 2 additions and 2 deletions
1
advent.h
1
advent.h
|
@ -188,7 +188,6 @@ int action(FILE *input, enum speechpart part, long verb, token_t obj);
|
||||||
#define GO_CLEAROBJ 2012
|
#define GO_CLEAROBJ 2012
|
||||||
#define GO_CHECKHINT 2600
|
#define GO_CHECKHINT 2600
|
||||||
#define GO_CHECKFOO 2607
|
#define GO_CHECKFOO 2607
|
||||||
#define GO_CLOSEJUMP 2610
|
|
||||||
#define GO_DIRECTION 2620
|
#define GO_DIRECTION 2620
|
||||||
#define GO_LOOKUP 2630
|
#define GO_LOOKUP 2630
|
||||||
#define GO_WORD2 2800
|
#define GO_WORD2 2800
|
||||||
|
|
3
main.c
3
main.c
|
@ -983,7 +983,8 @@ static bool do_command(FILE *cmdin)
|
||||||
else
|
else
|
||||||
continue; /* back to top of main interpreter loop */
|
continue; /* back to top of main interpreter loop */
|
||||||
}
|
}
|
||||||
if (game.loc == 33 && PCT(25) && !game.closng)RSPEAK(SAYS_PLUGH);
|
if (game.loc == LOC_Y2 && PCT(25) && !game.closng)
|
||||||
|
RSPEAK(SAYS_PLUGH);
|
||||||
|
|
||||||
listobjects();
|
listobjects();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue