forked from github/server
- status flee does not immediately remove the guard status, but delayed.
This commit is contained in:
parent
bfcba5e94e
commit
9124a86e0e
2 changed files with 47 additions and 50 deletions
|
@ -2246,9 +2246,6 @@ setstatus(struct unit * u, int status)
|
|||
assert(status>=ST_AGGRO && status<=ST_FLEE);
|
||||
if (u->status!=status) {
|
||||
u->status = (status_t)status;
|
||||
if (u->status==ST_FLEE) {
|
||||
setguard(u, GUARD_NONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue