Skip to content

Commit

Permalink
fix: Start System.oldTickCount at 0 rather than -1 (fixes ikemen-engi…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesuszilla committed Apr 12, 2024
1 parent debee0c commit def58a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit def58a8

Please sign in to comment.