From 5bd1548eff90f6734963cdcd47d9ea2642dfec0f Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Tue, 19 Dec 2017 13:48:45 +0100 Subject: Don't count self when checking the area. --- src/game/units.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; -- cgit