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