diff options
author | Einar Johan Trøan Sømåen | 2012-07-21 21:17:08 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-21 21:17:08 +0200 |
commit | f54f262bb56d251d131109a81cad7811e240ff4f (patch) | |
tree | 653da85c970e74d6236e05a42a7e4ce60e260e2b /engines/wintermute/base/particles | |
parent | b5a07fef8ebf29f7f44b15d9b34799c7e115fdad (diff) | |
download | scummvm-rg350-f54f262bb56d251d131109a81cad7811e240ff4f.tar.gz scummvm-rg350-f54f262bb56d251d131109a81cad7811e240ff4f.tar.bz2 scummvm-rg350-f54f262bb56d251d131109a81cad7811e240ff4f.zip |
WINTERMUTE: Fix a few signed/unsigned and float->int warnings.
Diffstat (limited to 'engines/wintermute/base/particles')
-rw-r--r-- | engines/wintermute/base/particles/part_emitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/base/particles/part_emitter.cpp b/engines/wintermute/base/particles/part_emitter.cpp index 212f11d2f6..54e612ff42 100644 --- a/engines/wintermute/base/particles/part_emitter.cpp +++ b/engines/wintermute/base/particles/part_emitter.cpp @@ -168,7 +168,7 @@ bool PartEmitter::initParticle(PartParticle *particle, uint32 currentTime, uint3 else scale = BaseUtils::randomFloat(_scale1, _scale2);
int lifeTime;
- if (_lifeTimeZBased) lifeTime = _lifeTime2 - posZ * (_lifeTime2 - _lifeTime1) / 100;
+ if (_lifeTimeZBased) lifeTime = (int)(_lifeTime2 - posZ * (_lifeTime2 - _lifeTime1) / 100);
else lifeTime = BaseUtils::randomInt(_lifeTime1, _lifeTime2);
float angle = BaseUtils::randomAngle(_angle1, _angle2);
|