Browse Source

Don't time-travel when resuming play.

Sam Jaffe 6 years ago
parent
commit
4363140bb7
1 changed files with 1 additions and 2 deletions
  1. 1 2
      danmaku/GameView.mm

+ 1 - 2
danmaku/GameView.mm

@@ -194,14 +194,13 @@ static NSTimeInterval const FRAME_INTERVAL = 1.0 / 60.0;
   [timer invalidate];
   [frameTimer invalidate];
   
-  // env::pause_clock();
   [self setNeedsDisplay:YES];
 }
 
 - (void)windowDidBecomeMain:(NSNotification *)notification {
   NSLog(@"window did become main");
 
-  // env::resume_clock();
+  game->set_current_timestamp();
   [self setNeedsDisplay:YES];
   
   // TODO (sjaffe): Become able to change framerate