From: Maxim Mamontov Date: Wed, 6 Apr 2011 09:55:05 +0000 (+0300) Subject: Fix bug with possible start all subsystems before timer becomes valid X-Git-Tag: 2.407-rc3~77 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/77428ef82db5a547b2443d6d9632b52bc82f5c19 Fix bug with possible start all subsystems before timer becomes valid --- diff --git a/projects/stargazer/stg_timer.cpp b/projects/stargazer/stg_timer.cpp index dd0a04e1..6d2b4b0c 100644 --- a/projects/stargazer/stg_timer.cpp +++ b/projects/stargazer/stg_timer.cpp @@ -54,6 +54,8 @@ switch (START_TIME) stgTime = mktime(<); break; } +#else +stgTime = time(NULL); #endif nonstop = 1;