summaryrefslogtreecommitdiff
path: root/src/game/game.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-16 23:02:32 +0000
committerPaweł Redman <pawel.redman@gmail.com>2017-12-16 23:02:32 +0000
commit3d69504213f9788ced2ec18ceba9175b1ccb84dc (patch)
tree3ffb0fa9ae85eb487acfb1234b07e32f6721579d /src/game/game.cpp
parentc0531bd165643c8482e00ea04297498474be113e (diff)
Fix a bug in the waking code; more debugging info.
Diffstat (limited to 'src/game/game.cpp')
-rw-r--r--src/game/game.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp
index 64dd224..fb130d9 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -163,7 +163,12 @@ void state_t::wake_everything(v2f_t x, float range)
if (!ent)
continue;
- if (ent->ignore_waking || ent->awake)
+ if (ent->ignore_waking)
+ continue;
+
+ ent->wake_time = now;
+
+ if (ent->awake)
continue;
ent->wake();