Don't do interceptions at the very end of traveling between planets.

Right after arriving at the destination planet, the code would do one more
check for a possible interception.  The chance of this happening is small, but
if it happened, it would leave the game in an inconsistent state.  This might
have caused the game to immediately start a real mission, which would loop
indefinitely.
This commit is contained in:
Guus Sliepen 2012-03-11 13:12:12 +01:00
parent a1b3da48c1
commit 3460884167
1 changed files with 1 additions and 2 deletions

View File

@ -765,8 +765,7 @@ int galaxyMap()
section = 1;
redrawBackGround = true;
}
if (interceptionChance > 0)
else if (interceptionChance > 0)
{
if ((rand() % interceptionChance) == 0)
{