aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
authorStrangerke2014-06-06 07:19:56 +0200
committerStrangerke2014-06-06 07:19:56 +0200
commitec17a7ece693a3e5d301d16c34b1833c4ba26cf7 (patch)
tree950ab28cebde212036ace7fecb799bac633a3f10 /engines/cruise
parent2eaa78b54b535a3d1e95b2bc8c3bb6c13315e3f4 (diff)
downloadscummvm-rg350-ec17a7ece693a3e5d301d16c34b1833c4ba26cf7.tar.gz
scummvm-rg350-ec17a7ece693a3e5d301d16c34b1833c4ba26cf7.tar.bz2
scummvm-rg350-ec17a7ece693a3e5d301d16c34b1833c4ba26cf7.zip
CRUISE: disable more efficiently some code
Diffstat (limited to 'engines/cruise')
-rw-r--r--engines/cruise/saveload.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/engines/cruise/saveload.cpp b/engines/cruise/saveload.cpp
index 0f496465e9..a9fc62241a 100644
--- a/engines/cruise/saveload.cpp
+++ b/engines/cruise/saveload.cpp
@@ -915,17 +915,14 @@ Common::Error loadSavegameData(int saveGameIdx) {
while (currentcellHead) {
if (currentcellHead->type == 5) {
- uint8 *ptr = mainProc14(currentcellHead->overlay, currentcellHead->idx);
-
ASSERT(0);
-
- if (ptr) {
- ASSERT(0);
- //*(int16 *)(currentcellHead->datas+0x2E) = getSprite(ptr,*(int16 *)(currentcellHead->datas+0xE));
- } else {
- ASSERT(0);
- //*(int16 *)(currentcellHead->datas+0x2E) = 0;
- }
+#if 0
+ uint8 *ptr = mainProc14(currentcellHead->overlay, currentcellHead->idx);
+ if (ptr)
+ *(int16 *)(currentcellHead->datas+0x2E) = getSprite(ptr,*(int16 *)(currentcellHead->datas+0xE));
+ else
+ *(int16 *)(currentcellHead->datas+0x2E) = 0;
+#endif
}
currentcellHead = currentcellHead->next;