From ba0af7ef3fcf7a1f85e579d66e823ff25d420c26 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 21 Apr 2018 17:37:40 +0200 Subject: Rebalance + new firing sound. --- src/game/game.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game/game.hpp') 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 move_marker; std::unique_ptr aim_marker; -- cgit