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:
parent
a1b3da48c1
commit
3460884167
|
@ -765,8 +765,7 @@ int galaxyMap()
|
|||
section = 1;
|
||||
redrawBackGround = true;
|
||||
}
|
||||
|
||||
if (interceptionChance > 0)
|
||||
else if (interceptionChance > 0)
|
||||
{
|
||||
if ((rand() % interceptionChance) == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue