Unstable v0.15.17.0 (Hex is out of town edition)
This commit is contained in:
@@ -231,7 +231,7 @@ namespace Barotrauma
|
||||
Vector2 screenTargetPos = new Vector2(GameMain.GraphicsWidth, GameMain.GraphicsHeight) * 0.5f;
|
||||
if (CharacterHealth.OpenHealthWindow != null)
|
||||
{
|
||||
screenTargetPos.X = GameMain.GraphicsWidth * (CharacterHealth.OpenHealthWindow.Alignment == Alignment.Left ? 0.75f : 0.25f);
|
||||
screenTargetPos.X = GameMain.GraphicsWidth * (CharacterHealth.OpenHealthWindow.Alignment == Alignment.Left ? 0.6f : 0.4f);
|
||||
}
|
||||
else if (ConversationAction.IsDialogOpen)
|
||||
{
|
||||
@@ -305,7 +305,7 @@ namespace Barotrauma
|
||||
{
|
||||
string errorMsg = "Attempted to modify the state of the physics simulation while a time step was running.";
|
||||
DebugConsole.ThrowError(errorMsg, e);
|
||||
GameAnalyticsManager.AddErrorEventOnce("GameScreen.Update:WorldLockedException" + e.Message, GameAnalyticsSDK.Net.EGAErrorSeverity.Critical, errorMsg);
|
||||
GameAnalyticsManager.AddErrorEventOnce("GameScreen.Update:WorldLockedException" + e.Message, GameAnalyticsManager.ErrorSeverity.Critical, errorMsg);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -37,45 +37,6 @@ namespace Barotrauma
|
||||
#endif
|
||||
}
|
||||
|
||||
public void SetRadiationEnabled(bool enabled)
|
||||
{
|
||||
#if CLIENT
|
||||
if (radiationEnabledTickBox == null) { return; }
|
||||
radiationEnabledTickBox.Selected = enabled;
|
||||
#endif
|
||||
}
|
||||
|
||||
public bool IsRadiationEnabled()
|
||||
{
|
||||
#if CLIENT
|
||||
return radiationEnabledTickBox != null && radiationEnabledTickBox.Selected;
|
||||
#elif SERVER
|
||||
return GameMain.Server.ServerSettings.RadiationEnabled;
|
||||
#endif
|
||||
}
|
||||
|
||||
public void SetMaxMissionCount(int maxMissionCount)
|
||||
{
|
||||
#if SERVER
|
||||
if (GameMain.Server != null)
|
||||
{
|
||||
if (maxMissionCount < CampaignSettings.MinMissionCountLimit) maxMissionCount = CampaignSettings.MaxMissionCountLimit;
|
||||
if (maxMissionCount > CampaignSettings.MaxMissionCountLimit) maxMissionCount = CampaignSettings.MinMissionCountLimit;
|
||||
|
||||
GameMain.Server.ServerSettings.MaxMissionCount = maxMissionCount;
|
||||
lastUpdateID++;
|
||||
}
|
||||
#endif
|
||||
#if CLIENT
|
||||
(maxMissionCountText as GUITextBlock).Text = maxMissionCount.ToString();
|
||||
#endif
|
||||
}
|
||||
|
||||
public int GetMaxMissionCount()
|
||||
{
|
||||
return GameMain.NetworkMember?.ServerSettings?.MaxMissionCount ?? 0;
|
||||
}
|
||||
|
||||
public void ToggleTraitorsEnabled(int dir)
|
||||
{
|
||||
#if SERVER
|
||||
|
||||
Reference in New Issue
Block a user