diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-14 17:13:36 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-14 17:23:35 +0100 |
commit | 36a95838d17ffaee4020a2aba832af6636591df4 (patch) | |
tree | 8853eb8623970201d009a4a4637e5451c9103f8c /src/game/game.cpp | |
parent | d376eb30b8363f712e3a0bbc04ea584547c09e65 (diff) |
Rework collision masks and improve AI.
Diffstat (limited to 'src/game/game.cpp')
-rw-r--r-- | src/game/game.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp index 836b304..826f9e5 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -75,7 +75,7 @@ void state_t::command(v2f_t x) if (unit->dead) continue; - if (!unit->start_moving(snap)) + if (!unit->start_moving(snap, CF_SOLID)) unit->say(text::get(text::SAY_NO_PATH)); else unit->say(text::get(text::SAY_MOVING)); |