Fix cs enabled for session state not being preserved between reloads
This commit is contained in:
@@ -230,8 +230,14 @@ namespace Barotrauma
|
||||
|
||||
CoroutineManager.Invoke(() =>
|
||||
{
|
||||
#if CLIENT
|
||||
bool prevCsEnabled = _isCsEnabledForSession;
|
||||
#endif
|
||||
var state = CurrentRunState;
|
||||
SetRunState(RunState.Unloaded);
|
||||
#if CLIENT
|
||||
_isCsEnabledForSession = prevCsEnabled;
|
||||
#endif
|
||||
SetRunState(state);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user