Structurize the informaruin about dwarves.
This commit is contained in:
parent
195e6e149b
commit
ff9c73a37d
6 changed files with 44 additions and 42 deletions
4
misc.c
4
misc.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue