Fixes FrameUpdate getting 0 dt when paused.

Fixes #1226
This commit is contained in:
Pieter-Jan Briers
2020-08-15 16:35:32 +02:00
parent 5819e5ee92
commit 6889e2cba3

View File

@@ -235,12 +235,11 @@ namespace Robust.Shared.Timing
// update out of the simulation
simFrameEvent = new FrameEventArgs((float) _timing.FrameTime.TotalSeconds);
#if EXCEPTION_TOLERANCE
try
#endif
{
Update?.Invoke(this, simFrameEvent);
Update?.Invoke(this, realFrameEvent);
}
#if EXCEPTION_TOLERANCE
catch (Exception exp)