[Scummvm-git-logs] scummvm master -> cb9ebfcb1c1e96194d6e9389b61b7cb802f0b7a6
dreammaster
dreammaster at scummvm.org
Fri Feb 17 04:02:29 CET 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
cb9ebfcb1c TITANIC: Fix compiler warning
Commit: cb9ebfcb1c1e96194d6e9389b61b7cb802f0b7a6
https://github.com/scummvm/scummvm/commit/cb9ebfcb1c1e96194d6e9389b61b7cb802f0b7a6
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-02-16T22:02:17-05:00
Commit Message:
TITANIC: Fix compiler warning
Changed paths:
engines/titanic/sound/music_room_instrument.cpp
diff --git a/engines/titanic/sound/music_room_instrument.cpp b/engines/titanic/sound/music_room_instrument.cpp
index 5e7bd9b..b923298 100644
--- a/engines/titanic/sound/music_room_instrument.cpp
+++ b/engines/titanic/sound/music_room_instrument.cpp
@@ -234,7 +234,7 @@ void CMusicRoomInstrument::update(int val) {
double tempVal = 46.0 - ((double)(val - 14) * 1.43);
int frameNum = _field4C;
- int frameNum1 = (tempVal - frameNum) * 0.25;
+ int frameNum1 = (int)((tempVal - frameNum) * 0.25);
_gameObjects[1]->playMovie(frameNum1, frameNum1, MOVIE_STOP_PREVIOUS);
frameNum += frameNum1;
More information about the Scummvm-git-logs
mailing list