aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/staticdata.cpp
diff options
context:
space:
mode:
authorjohndoe1232011-07-13 18:38:40 +0000
committerWillem Jan Palenstijn2013-05-08 20:38:47 +0200
commit436f8952bbd168c53481bd19f9d79372dd0561c9 (patch)
tree94147d8897b9c2706ca848d038b89eaec20726d1 /engines/neverhood/staticdata.cpp
parentb611b65bf42a3f2d710199fa69428ec1012a0108 (diff)
downloadscummvm-rg350-436f8952bbd168c53481bd19f9d79372dd0561c9.tar.gz
scummvm-rg350-436f8952bbd168c53481bd19f9d79372dd0561c9.tar.bz2
scummvm-rg350-436f8952bbd168c53481bd19f9d79372dd0561c9.zip
NEVERHOOD: More work on Scene1002, Klayman and the rest
- Add "heavy debug" output to Entity (display which update/message handler is called) - Also add more debug output - Error out when a StaticData resource could not be found
Diffstat (limited to 'engines/neverhood/staticdata.cpp')
-rw-r--r--engines/neverhood/staticdata.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/neverhood/staticdata.cpp b/engines/neverhood/staticdata.cpp
index 4cd1d30251..b9ac232707 100644
--- a/engines/neverhood/staticdata.cpp
+++ b/engines/neverhood/staticdata.cpp
@@ -107,14 +107,20 @@ void StaticData::load(const char *filename) {
}
HitRectList *StaticData::getHitRectList(uint32 id) {
+ if (!_hitRectLists[id])
+ error("StaticData::getHitRectList() HitRectList with id %08X not found", id);
return _hitRectLists[id];
}
RectList *StaticData::getRectList(uint32 id) {
+ if (!_rectLists[id])
+ error("StaticData::getRectList() RectList with id %08X not found", id);
return _rectLists[id];
}
MessageList *StaticData::getMessageList(uint32 id) {
+ if (!_messageLists[id])
+ error("StaticData::getMessageList() MessageList with id %08X not found", id);
return _messageLists[id];
}