Apply loc_t type.
This commit is contained in:
parent
4369284c75
commit
195e6e149b
2 changed files with 2 additions and 2 deletions
2
advent.h
2
advent.h
|
@ -167,7 +167,7 @@ struct game_t {
|
||||||
int holdng; // number of objects being carried
|
int holdng; // number of objects being carried
|
||||||
int igo; // # uses of "go" instead of a direction
|
int igo; // # uses of "go" instead of a direction
|
||||||
int iwest; // # times he's said "west" instead of "w"
|
int iwest; // # times he's said "west" instead of "w"
|
||||||
int knfloc; // knife location; 0 if none, -1 after caveat
|
loc_t knfloc; // knife location; LOC_NOWERE if none, -1 after caveat
|
||||||
turn_t limit; // lifetime of lamp
|
turn_t limit; // lifetime of lamp
|
||||||
loc_t loc; // where player is now
|
loc_t loc; // where player is now
|
||||||
loc_t newloc; // where player is going
|
loc_t newloc; // where player is going
|
||||||
|
|
2
main.c
2
main.c
|
@ -370,7 +370,7 @@ static bool dwarfmove(void)
|
||||||
++game.dtotal;
|
++game.dtotal;
|
||||||
if (game.odloc[i] == game.dloc[i]) {
|
if (game.odloc[i] == game.dloc[i]) {
|
||||||
++attack;
|
++attack;
|
||||||
if (game.knfloc >= 0)
|
if (game.knfloc >= LOC_NOWHERE)
|
||||||
game.knfloc = game.loc;
|
game.knfloc = game.loc;
|
||||||
if (randrange(1000) < 95 * (game.dflag - 2))
|
if (randrange(1000) < 95 * (game.dflag - 2))
|
||||||
++stick;
|
++stick;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue