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