Fix errors
This commit is contained in:
@@ -399,7 +399,7 @@ namespace Barotrauma
|
||||
prevTicks = currTicks;
|
||||
while (Timing.Accumulator >= Timing.Step)
|
||||
{
|
||||
performanceMeasurement.Start();
|
||||
performanceCounterTimer.Start();
|
||||
|
||||
Timing.TotalTime += Timing.Step;
|
||||
DebugConsole.Update();
|
||||
@@ -415,9 +415,9 @@ namespace Barotrauma
|
||||
|
||||
GameMain.Lua.Update();
|
||||
GameMain.Lua.hook.Call("think", new object[] { });
|
||||
performanceMeasurement.Stop();
|
||||
LuaSetup.LuaTimer.LastUpdateTime = performanceMeasurement.ElapsedMilliseconds;
|
||||
performanceMeasurement.Reset();
|
||||
performanceCounterTimer.Stop();
|
||||
LuaSetup.LuaTimer.LastUpdateTime = performanceCounterTimer.ElapsedMilliseconds;
|
||||
performanceCounterTimer.Reset();
|
||||
|
||||
Timing.Accumulator -= Timing.Step;
|
||||
updateCount++;
|
||||
|
||||
@@ -79,16 +79,16 @@ namespace Barotrauma.Networking
|
||||
|
||||
public readonly string SenderName;
|
||||
|
||||
private Color? customColor = null;
|
||||
private Color? customTextColor = null;
|
||||
|
||||
public Color Color
|
||||
{
|
||||
get
|
||||
{
|
||||
if(customColor == null) return MessageColor[(int)Type];
|
||||
return (Color)customColor;
|
||||
if(customTextColor == null) return MessageColor[(int)Type];
|
||||
return (Color)customTextColor;
|
||||
}
|
||||
set { customColor = value; }
|
||||
set { customTextColor = value; }
|
||||
}
|
||||
|
||||
public static string GetTimeStamp()
|
||||
|
||||
Reference in New Issue
Block a user