Structurize the informaruin about dwarves.

This commit is contained in:
Eric S. Raymond 2023-04-07 09:15:20 -04:00
parent 195e6e149b
commit ff9c73a37d
6 changed files with 44 additions and 42 deletions

4
misc.c
View file

@ -672,9 +672,9 @@ int atdwrf(loc_t where)
return at;
at = -1;
for (int i = 1; i <= NDWARVES - 1; i++) {
if (game.dloc[i] == where)
if (game.dwarves[i].loc == where)
return i;
if (game.dloc[i] != 0)
if (game.dwarves[i].loc != 0)
at = 0;
}
return at;