Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 11, 2010, 11:34:20 AM (14 years ago)
Author:
rgrieder
Message:

Removed a ton of msvc warnings revealed with OGRE v1.7 (they removed the warning suppressors in OgrePrerequisites.h).
All of them are conversions from one type to another that might be lossy (mostly double to float, please always use "3.7f" instead of "3.7" as constants when using floats).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/GraphicsManager.cc

    r6417 r6502  
    366366        uint64_t timeAfterTick = time.getRealMicroseconds();
    367367        // Subtract the time used for rendering from the tick time counter
    368         Game::getInstance().subtractTickTime(timeAfterTick - timeBeforeTick);
     368        Game::getInstance().subtractTickTime((int32_t)(timeAfterTick - timeBeforeTick));
    369369
    370370        // again, just to be sure OGRE works fine
Note: See TracChangeset for help on using the changeset viewer.