aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/items_lol.cpp
diff options
context:
space:
mode:
authorFlorian Kagerer2009-03-21 14:30:25 +0000
committerFlorian Kagerer2009-03-21 14:30:25 +0000
commitb55602180decd888084797a7e7a8fb8778d6c7ee (patch)
tree1ac606ba43ac34895f3da310b3f661d16acc0a19 /engines/kyra/items_lol.cpp
parentbd8b94ee8a0c17802ddfc6d7edbfbbaf1f7b1eef (diff)
downloadscummvm-rg350-b55602180decd888084797a7e7a8fb8778d6c7ee.tar.gz
scummvm-rg350-b55602180decd888084797a7e7a8fb8778d6c7ee.tar.bz2
scummvm-rg350-b55602180decd888084797a7e7a8fb8778d6c7ee.zip
LOL: The guards will now attack you when you throw certain items at them. They can't do any damage though, since this isn't implemented yet.
svn-id: r39582
Diffstat (limited to 'engines/kyra/items_lol.cpp')
-rw-r--r--engines/kyra/items_lol.cpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/engines/kyra/items_lol.cpp b/engines/kyra/items_lol.cpp
index 06667023ad..1977ba9a60 100644
--- a/engines/kyra/items_lol.cpp
+++ b/engines/kyra/items_lol.cpp
@@ -413,7 +413,7 @@ void LoLEngine::updateObjectFlightPosition(FlyingObject *t) {
}
void LoLEngine::objectFlightProcessHits(FlyingObject *t, int x, int y, int objectOnNextBlock) {
- int r = 0;
+ uint16 r = 0;
if (objectOnNextBlock == 1) {
runLevelScriptCustom(calcNewBlockPosition(_itemsInPlay[t->item].blockPropertyIndex, t->direction >> 1), 0x8000, -1, t->item, 0, 0);
@@ -432,7 +432,7 @@ void LoLEngine::objectFlightProcessHits(FlyingObject *t, int x, int y, int objec
return;
} else {
- r = flyingObjectHitMonsters(x, y);
+ r = getClosestMonster(x, y);
}
} else if (objectOnNextBlock == 4) {
@@ -445,25 +445,13 @@ void LoLEngine::objectFlightProcessHits(FlyingObject *t, int x, int y, int objec
return;
} else {
- r = flyingObjectHitParty(x, y);
+ r = getClosestPartyMember(x, y);
}
}
runItemScript(t->charNum, t->item, 0x8000, r, 0);
}
-uint16 LoLEngine::flyingObjectHitMonsters(int x, int y) {
- ////////////
- // TODO
- return 0;
-}
-
-uint16 LoLEngine::flyingObjectHitParty(int x, int y) {
- ////////////
- // TODO
- return 0;
-}
-
void LoLEngine::updateFlyingObjects(FlyingObject *t) {
int x = 0;
int y = 0;