From def58a87ceb44d1b485946be4be763dc390cb4bd Mon Sep 17 00:00:00 2001 From: Jesuszilla Date: Thu, 11 Apr 2024 20:12:14 -0500 Subject: [PATCH] fix: Start System.oldTickCount at 0 rather than -1 (fixes #1720) --- src/system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system.go b/src/system.go index 98b445b4..438d59d9 100644 --- a/src/system.go +++ b/src/system.go @@ -927,7 +927,7 @@ func (s *System) addFrameTime(t float32) bool { return true } func (s *System) resetFrameTime() { - s.tickCount, s.oldTickCount, s.tickCountF, s.lastTick = 0, -1, 0, 0 + s.tickCount, s.oldTickCount, s.tickCountF, s.lastTick = 0, 0, 0, 0 s.nextAddTime, s.oldNextAddTime = 1, 1 } func (s *System) commandUpdate() {