aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-01 19:20:18 -0400
committerPaul Gilbert2015-07-01 19:20:18 -0400
commitdbf82dd92af5f0b8b04dfa4e6175740dc80e24ad (patch)
tree9a33444ad5fe2fe85c628bd5be7fa267724fde39 /engines/sherlock/tattoo
parent704dd8140b28668feeb3849c7c13044d8eb122ed (diff)
downloadscummvm-rg350-dbf82dd92af5f0b8b04dfa4e6175740dc80e24ad.tar.gz
scummvm-rg350-dbf82dd92af5f0b8b04dfa4e6175740dc80e24ad.tar.bz2
scummvm-rg350-dbf82dd92af5f0b8b04dfa4e6175740dc80e24ad.zip
SHERLOCK: RT: Move ADJUST_CORD usage to initial anim loading
Diffstat (limited to 'engines/sherlock/tattoo')
-rw-r--r--engines/sherlock/tattoo/tattoo_scene.cpp14
-rw-r--r--engines/sherlock/tattoo/tattoo_user_interface.cpp3
2 files changed, 1 insertions, 16 deletions
diff --git a/engines/sherlock/tattoo/tattoo_scene.cpp b/engines/sherlock/tattoo/tattoo_scene.cpp
index d41df5e275..0f02f3e872 100644
--- a/engines/sherlock/tattoo/tattoo_scene.cpp
+++ b/engines/sherlock/tattoo/tattoo_scene.cpp
@@ -569,12 +569,6 @@ int TattooScene::getScaleVal(const Point32 &pt) {
return result;
}
-#define ADJUST_COORD(COORD) \
- if (COORD.x != -1) \
- COORD.x *= FIXED_INT_MULTIPLIER; \
- if (COORD.y != -1) \
- COORD.y *= FIXED_INT_MULTIPLIER
-
int TattooScene::startCAnim(int cAnimNum, int playRate) {
TattooEngine &vm = *(TattooEngine *)_vm;
Events &events = *_vm->_events;
@@ -595,12 +589,6 @@ int TattooScene::startCAnim(int cAnimNum, int playRate) {
PositionFacing teleport1 = cAnim._teleport[0];
PositionFacing teleport2 = cAnim._teleport[1];
- // If the co-ordinates are valid (not -1), adjust them by the fixed int multiplier
- ADJUST_COORD(goto1);
- ADJUST_COORD(goto2);
- ADJUST_COORD(teleport1);
- ADJUST_COORD(teleport2);
-
// See if the Player must walk to a position before the animation starts
SpriteType savedPlayerType = people[HOLMES]._type;
if (goto1.x != -1 && people[HOLMES]._type == CHARACTER) {
@@ -700,8 +688,6 @@ int TattooScene::startCAnim(int cAnimNum, int playRate) {
return 1;
}
-#undef ADJUST_COORD
-
void TattooScene::setNPCPath(int npc) {
TattooPeople &people = *(TattooPeople *)_vm->_people;
Talk &talk = *_vm->_talk;
diff --git a/engines/sherlock/tattoo/tattoo_user_interface.cpp b/engines/sherlock/tattoo/tattoo_user_interface.cpp
index 107eeba0d0..8942d4e511 100644
--- a/engines/sherlock/tattoo/tattoo_user_interface.cpp
+++ b/engines/sherlock/tattoo/tattoo_user_interface.cpp
@@ -86,8 +86,7 @@ void TattooUserInterface::lookAtObject() {
scene.startCAnim(cNum);
} else if (_bgShape->_lookPosition.y != 0) {
// Need to walk to object before looking at it
- people[HOLMES].walkToCoords(Common::Point(_bgShape->_lookPosition.x * FIXED_INT_MULTIPLIER,
- _bgShape->_lookPosition.y * FIXED_INT_MULTIPLIER), _bgShape->_lookPosition._facing);
+ people[HOLMES].walkToCoords(_bgShape->_lookPosition, _bgShape->_lookPosition._facing);
}
if (!talk._talkToAbort) {