Another rollup patch.
[super-star-trek.git] / src / battle.c
index 71a8202a441f8a378d717bd1e05ead849302f0a5..78baae9eab970dbf4a127991fbf873c154c63937 100644 (file)
@@ -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)