First step in game state encapsulation: the dwarf & pirate locations.

This commit is contained in:
Eric S. Raymond 2017-06-06 21:34:11 -04:00
parent 3b8122ae3a
commit 07c0020a7a
6 changed files with 60 additions and 50 deletions

4
misc.c
View file

@ -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);