First step in game state encapsulation: the dwarf & pirate locations.
This commit is contained in:
parent
3b8122ae3a
commit
07c0020a7a
6 changed files with 60 additions and 50 deletions
4
misc.c
4
misc.c
|
@ -592,8 +592,8 @@ long AT, I;
|
|||
if(DFLAG < 2)return(AT);
|
||||
AT= -1;
|
||||
for (I=1; I<=NDWARVES-1; I++) {
|
||||
if(DLOC[I] == WHERE) goto L2;
|
||||
if(DLOC[I] != 0)AT=0;
|
||||
if(game.dloc[I] == WHERE) goto L2;
|
||||
if(game.dloc[I] != 0)AT=0;
|
||||
} /* end loop */
|
||||
return(AT);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue