Explorar el Código

Don't time-travel when resuming play.

Sam Jaffe hace 6 años
padre
commit
4363140bb7
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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