Treat distance between planets as always 1 if no interception chance.

This commit is contained in:
onpon4 2016-01-09 10:40:29 -05:00
parent 8793aaa780
commit 290d44386a
1 changed files with 3 additions and 0 deletions

View File

@ -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;