Fix control flow.
This commit is contained in:
parent
dcc6a17c2c
commit
cb759ccdc2
|
@ -185,7 +185,8 @@ namespace IngameScript
|
||||||
if (!airVent.CanPressurize)
|
if (!airVent.CanPressurize)
|
||||||
{
|
{
|
||||||
error("Airlock is not airtight.");
|
error("Airlock is not airtight.");
|
||||||
yield return false;
|
Cycling = false;
|
||||||
|
yield break;
|
||||||
}
|
}
|
||||||
|
|
||||||
pressurizeDepressurize();
|
pressurizeDepressurize();
|
||||||
|
@ -214,6 +215,7 @@ namespace IngameScript
|
||||||
|
|
||||||
setLights(AirlockLightState.Off);
|
setLights(AirlockLightState.Off);
|
||||||
_console.Print("Cycling Complete.");
|
_console.Print("Cycling Complete.");
|
||||||
|
Cycling = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void closeDoors()
|
private void closeDoors()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user