diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-19 13:48:45 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-19 13:48:45 +0100 |
commit | 5bd1548eff90f6734963cdcd47d9ea2642dfec0f (patch) | |
tree | 0362c68d58151c6af32230770e4aad069e560d04 | |
parent | fa44190dc333d09b87970409b3ae3fa68919cd91 (diff) |
Don't count self when checking the area.
-rw-r--r-- | src/game/units.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp index 279bf0b..9a098a8 100644 --- a/src/game/units.cpp +++ b/src/game/units.cpp @@ -308,6 +308,9 @@ void unit_soldier_t::check_area(void) if (!ent) continue; + if (ent == this) + continue; + // Wake everything around. if (!ent->ignore_waking) { ent->wake_time = game->now; |