aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/transport
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-24 18:42:32 -0400
committerPaul Gilbert2016-08-24 18:42:32 -0400
commite733f8113f69f37b14e8a2447f5e7dce89a1670d (patch)
tree085e260735f91cedc9a6572baad64e51ec4b6400 /engines/titanic/game/transport
parentfaf52df0653006ad8107e91bb24bc747e4b01e29 (diff)
downloadscummvm-rg350-e733f8113f69f37b14e8a2447f5e7dce89a1670d.tar.gz
scummvm-rg350-e733f8113f69f37b14e8a2447f5e7dce89a1670d.tar.bz2
scummvm-rg350-e733f8113f69f37b14e8a2447f5e7dce89a1670d.zip
TITANIC: Implemented more game classes
Diffstat (limited to 'engines/titanic/game/transport')
-rw-r--r--engines/titanic/game/transport/lift_indicator.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/titanic/game/transport/lift_indicator.cpp b/engines/titanic/game/transport/lift_indicator.cpp
index 1336daf7aa..7471affc36 100644
--- a/engines/titanic/game/transport/lift_indicator.cpp
+++ b/engines/titanic/game/transport/lift_indicator.cpp
@@ -93,14 +93,14 @@ bool CLiftindicator::EnterViewMsg(CEnterViewMsg *msg) {
case 1:
case 2:
setPosition(Point(_bounds.left, _indicatorPos.y +
- multiplier * CLift::_elevator1Floor));
+ (int)(multiplier * CLift::_elevator1Floor)));
_startFrame = CLift::_elevator1Floor;
break;
case 3:
case 4:
setPosition(Point(_bounds.left, _indicatorPos.y +
- multiplier * CLift::_elevator3Floor));
+ (int)(multiplier * CLift::_elevator3Floor)));
_startFrame = CLift::_elevator3Floor;
break;
@@ -115,14 +115,14 @@ bool CLiftindicator::EnterViewMsg(CEnterViewMsg *msg) {
case 1:
case 2:
setPosition(Point(_bounds.left, _indicatorPos.y +
- multiplier * CLift::_elevator2Floor));
+ (int)(multiplier * CLift::_elevator2Floor)));
_startFrame = CLift::_elevator2Floor;
break;
case 3:
case 4:
setPosition(Point(_bounds.left, _indicatorPos.y +
- multiplier * CLift::_elevator4Floor));
+ (int)(multiplier * CLift::_elevator4Floor)));
_startFrame = CLift::_elevator4Floor;
break;
@@ -158,8 +158,8 @@ bool CLiftindicator::PETActivateMsg(CPETActivateMsg *msg) {
&& pet->getRoomsFloorNum() != CLift::_elevator4Floor) {
petDisplayMessage(1, "This elevator is currently in an advanced state of non-functionality.");
} else {
- _start = _indicatorPos.y + _startFrame * multiplier;
- _end = _indicatorPos.y + _endFrame * multiplier;
+ _start = _indicatorPos.y + (int)(_startFrame * multiplier);
+ _end = _indicatorPos.y + (int)(_endFrame * multiplier);
lockMouse();
addTimer(100);