Add CVar for disabling/enabling excited groups.

This commit is contained in:
Vera Aguilera Puerto
2021-07-26 11:06:34 +02:00
parent 7fa10bd17b
commit 86cecd3b5e
4 changed files with 28 additions and 16 deletions

View File

@@ -281,7 +281,8 @@ namespace Content.Server.Atmos.EntitySystems
}
atmosphere.ProcessingPaused = false;
atmosphere.State = AtmosphereProcessingState.ExcitedGroups;
// Next state depends on whether excited groups are enabled or not.
atmosphere.State = ExcitedGroups ? AtmosphereProcessingState.ExcitedGroups : AtmosphereProcessingState.HighPressureDelta;
continue;
case AtmosphereProcessingState.ExcitedGroups:
if (!ProcessExcitedGroups(atmosphere))