make my eyes happier: Random is now deprecated, moved lots of code around in a way that makes more sense and better LuaUserData error handling

This commit is contained in:
Evil Factory
2022-03-17 12:47:19 -03:00
parent 6026a0246d
commit 86066282cc
11 changed files with 1414 additions and 1416 deletions
@@ -416,7 +416,7 @@ namespace Barotrauma
GameMain.Lua.Update();
GameMain.Lua.hook.Call("think", new object[] { });
performanceCounterTimer.Stop();
LuaSetup.LuaTimer.LastUpdateTime = performanceCounterTimer.ElapsedMilliseconds;
LuaTimer.LastUpdateTime = performanceCounterTimer.ElapsedMilliseconds;
performanceCounterTimer.Reset();
Timing.Accumulator -= Timing.Step;