From fb5a98b72ab79949d1da7f75a3d6150c2906ef40 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Mon, 30 Aug 2021 14:48:06 +0200 Subject: gui: tech representation, menu, tile & unit info, attack info --- game/ground.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'game/ground.cpp') diff --git a/game/ground.cpp b/game/ground.cpp index 0ea273d..e6055bf 100644 --- a/game/ground.cpp +++ b/game/ground.cpp @@ -88,9 +88,7 @@ std::vector Ground::move_area (Gst &gst, Entity &ent) { std::vector Ground::attack_targets (Gst &gst, Entity &ent) { std::vector attacks; - int range = ent.info->range; - range += gst.tiles[gst.ground.tiles[gst.ground.at(ent.x, ent.y)]] - .range_bonus; + int range = gst.get_range(ent); bool builds = !gst.info_has_ability(ent.info, "Units Only"); bool units = !gst.info_has_ability(ent.info, "Buildings Only"); for (Entity &e : gst.entities) { -- cgit v1.2.3-54-g00ecf