X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fbattle.c;h=78baae9eab970dbf4a127991fbf873c154c63937;hp=7068553602ed88833a498e3fd0a89af1aa886aa2;hb=e56967f9f71423371cfe28a2ffa246a89042d531;hpb=e4ddd3649bf73ddd7a1e2bb32e7ce2e631293068 diff --git a/src/battle.c b/src/battle.c index 7068553..78baae9 100644 --- a/src/battle.c +++ b/src/battle.c @@ -240,7 +240,7 @@ void ram(bool ibumpd, feature ienm, coord w) game.shldup = false; prout(_("***Shields are down.")); if (game.state.remkl + game.state.remcom + game.state.nscrem) { - pause_game(true); + announce(); damagereport(); } else @@ -792,7 +792,8 @@ void deadkl(coord w, feature type, coord mv) if ((game.state.remkl + game.state.remcom + game.state.nscrem)==0) return; - game.state.remtime = game.state.remres/(game.state.remkl + 4*game.state.remcom); + game.state.remtime = game.state.remkl + game.state.remcom > 0 ? + game.state.remres/(game.state.remkl + 4*game.state.remcom) : 99; /* Remove enemy ship from arrays describing local conditions */ if (is_scheduled(FCDBAS) && same(game.battle, game.quadrant) && type==IHC)