--- src/weapon/air_attack.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/weapon/air_attack.cpp b/src/weapon/air_attack.cpp index a1598b8..f4e93af 100644 --- a/src/weapon/air_attack.cpp +++ b/src/weapon/air_attack.cpp @@ -167,11 +167,13 @@ void Plane::Refresh() if ( OnTopOfTarget() && nb_dropped_bombs == 0) { DropBomb(); m_ignore_movements = true; + MSG_DEBUG("random.get", "Plane::Refresh() first bomb"); next_height = RandomSync().GetInt(20,100); } else if (nb_dropped_bombs > 0 && nb_dropped_bombs < cfg.nbr_obus) { // Get the last rocket and check the position to be sure to not collide with it if ( last_dropped_bomb->GetY() > GetY()+GetHeight()+next_height ) { + MSG_DEBUG("random.get", "Plane::Refresh() another bomb"); next_height = RandomSync().GetInt(20,100); DropBomb(); } -- 1.6.0.4 _______________________________________________ Wormux-dev mailing list Wormux-dev@gna.org https://mail.gna.org/listinfo/wormux-dev