summaryrefslogtreecommitdiff
path: root/src/game/game.hpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-21 17:37:40 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-21 17:37:40 +0200
commitba0af7ef3fcf7a1f85e579d66e823ff25d420c26 (patch)
tree3354de65d3414181aa115a8121a5ea62d8af632e /src/game/game.hpp
parentb2b0f25954126d399f7eac1de7d83ef54e6969ac (diff)
Rebalance + new firing sound.
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r--src/game/game.hpp3
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;