1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

compile fix

This commit is contained in:
Marc Zinnschlag 2012-04-28 21:21:40 +02:00
parent 5d4d35a02c
commit d1d21c8a0e

View File

@ -365,7 +365,7 @@ void Objects::update(const float dt)
// Light animation (pulse & flicker)
it->time += dt;
const float phase = std::fmod(it->time, (32 * 2 * M_PI)) * 20;
const float phase = std::fmod(static_cast<double> (it->time), (32 * 2 * M_PI)) * 20;
float pulseConstant;
// These formulas are just guesswork, but they work pretty well