Просмотр исходного кода

base: add some minor randomness to the main Ticker.

legacy
Sam Hocevar sam 12 лет назад
Родитель
Сommit
e086100292
1 измененных файлов: 3 добавлений и 0 удалений
  1. +3
    -0
      src/ticker.cpp

+ 3
- 0
src/ticker.cpp Просмотреть файл

@@ -184,6 +184,9 @@ void *TickerData::GameThreadMain(void * /* p */)

data->frame++;

/* Ensure some randomness */
(void)rand();

/* If recording with fixed framerate, set deltatime to a fixed value */
if (data->recording && data->fps)
{


Загрузка…
Отмена
Сохранить