소스 검색

Don't time-travel when resuming play.

Sam Jaffe 6 년 전
부모
커밋
4363140bb7
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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