Skip to content

Commit 009b37b

Browse files
committed
[bugfix] [devtools] Redraw the screen from snapshot after resuming the game
This is needed because game might not clear the screen each frame. In such case devtools artifacts remain on screen after resuming.
1 parent 7e9ae34 commit 009b37b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

devtools/control.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ func pauseGame() {
2222
func resumeGame() {
2323
paused = false
2424
vm.TimeSeconds = timeWhenPaused
25+
snapshot.Draw()
2526
}

0 commit comments

Comments
 (0)