Re #307 : Fixed MSVC warnings about suspicious number conversions
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3439 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: be0bbcbc39f8163e29e6a0f25b8da253087ba6a3 Former-commit-id: 6b600d5c17afa14e39db07480130beb531f626ad
This commit is contained in:
parent
aac2fa04f1
commit
4e0725737a
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ ReTrackInit(void)
|
|||
reTrackInitTimeOfDay();
|
||||
reTrackInitWeather();
|
||||
|
||||
reTrackDump(ReInfo->track, 0.0);
|
||||
reTrackDump(ReInfo->track, 0);
|
||||
|
||||
// Make the graphics engine aware of the possibly changed track.
|
||||
if (ReInfo->_reGraphicItf.inittrack)
|
||||
|
@ -234,7 +234,7 @@ reTrackInitTimeOfDay(void)
|
|||
{
|
||||
time_t t = time(0);
|
||||
struct tm *ptm = localtime(&t);
|
||||
trackLocal->timeofday = ptm->tm_hour * 3600 + ptm->tm_min * 60 + ptm->tm_sec;
|
||||
trackLocal->timeofday = ptm->tm_hour * 3600.0f + ptm->tm_min * 60.0f + ptm->tm_sec;
|
||||
GfLogDebug(" Now time of day\n");
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue