aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-07-05 00:46:12 +0530
committerEugene Sandulenko2019-09-03 17:17:11 +0200
commit60eb04f83341f6f45ed8b17b72c8ab1fe650bf6c (patch)
tree0ce6572d845e4b22ad60d6fdc06c850aa8f2755e /engines
parent002f8edd48ad8fe01fce3ebb4e68362d6d023e82 (diff)
downloadscummvm-rg350-60eb04f83341f6f45ed8b17b72c8ab1fe650bf6c.tar.gz
scummvm-rg350-60eb04f83341f6f45ed8b17b72c8ab1fe650bf6c.tar.bz2
scummvm-rg350-60eb04f83341f6f45ed8b17b72c8ab1fe650bf6c.zip
HDB: Unstub addtoFairystones calls
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/map.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/engines/hdb/map.cpp b/engines/hdb/map.cpp
index ec5b57cea0..c99f3f2711 100644
--- a/engines/hdb/map.cpp
+++ b/engines/hdb/map.cpp
@@ -596,7 +596,12 @@ bool Map::load(Common::SeekableReadStream *stream) {
case INFO_FAIRY_SRC3:
case INFO_FAIRY_SRC4:
case INFO_FAIRY_SRC5:
- warning("STUB: Map::load: AddToFairystones(SRC) required");
+ g_hdb->_ai->addToFairystones(
+ aiInfo[_iconList[i].icon].type - INFO_FAIRY_SRC,
+ _iconList[i].x,
+ _iconList[i].y,
+ 0
+ );
break;
case INFO_FAIRY_DEST:
@@ -604,7 +609,12 @@ bool Map::load(Common::SeekableReadStream *stream) {
case INFO_FAIRY_DEST3:
case INFO_FAIRY_DEST4:
case INFO_FAIRY_DEST5:
- warning("STUB: Map::load: AddToFairystones(DEST) required");
+ g_hdb->_ai->addToFairystones(
+ aiInfo[_iconList[i].icon].type - INFO_FAIRY_DEST,
+ _iconList[i].x,
+ _iconList[i].y,
+ 1
+ );
break;
}
}