diff options
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r-- | src/game/game.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp index 908d73b..e35f156 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -183,7 +183,7 @@ namespace game { class unit_t : public entity_t { protected: double next_targetting = -INFINITY; - double last_attack = -INFINITY; + ntime_t next_attack = 0; public: size_t selected = 0; @@ -248,6 +248,7 @@ namespace game { public: double last_target_time = -INFINITY; v2f_t last_target_x; + ntime_t last_attack = 0; std::unique_ptr<fx_move_marker_t> move_marker; std::unique_ptr<fx_aim_marker_t> aim_marker; |