From 290d44386a8ee5be9293ee751f055f14f046ca80 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Sat, 9 Jan 2016 10:40:29 -0500 Subject: [PATCH] Treat distance between planets as always 1 if no interception chance. --- src/intermission.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intermission.cpp b/src/intermission.cpp index 3489a37..b8ffe06 100644 --- a/src/intermission.cpp +++ b/src/intermission.cpp @@ -1330,6 +1330,9 @@ int intermission() else { distance = abs(game.stationedPlanet - game.destinationPlanet); + if (interceptionChance <= 0) + distance = 1; + distance = (5 / distance); if (distance < 1) distance = 1;