소스 검색

Corrected crashing bug!

When SetTargetFPS(0) app crashes horribly (division by zero)
pull/189/head
Ray 8 년 전
부모
커밋
87fc7254e7
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      src/core.c

+ 2
- 1
src/core.c 파일 보기

@ -689,7 +689,8 @@ void EndTextureMode(void)
// Set target FPS for the game
void SetTargetFPS(int fps)
{
targetTime = 1.0/(double)fps;
if (fps < 1) targetTime = 0.0;
else targetTime = 1.0/(double)fps;
TraceLog(INFO, "Target time per frame: %02.03f milliseconds", (float)targetTime*1000);
}

불러오는 중...
취소
저장