aboutsummaryrefslogtreecommitdiff
path: root/sword1
diff options
context:
space:
mode:
Diffstat (limited to 'sword1')
-rw-r--r--sword1/logic.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/sword1/logic.cpp b/sword1/logic.cpp
index 9848a9c1ed..10ea42eb43 100644
--- a/sword1/logic.cpp
+++ b/sword1/logic.cpp
@@ -1283,7 +1283,10 @@ int SwordLogic::fnEnterSection(BsObject *cpt, int32 id, int32 screen, int32 d, i
if (screen >= TOTAL_SECTIONS)
error("mega %d tried entering section %d", id, screen);
- if (cpt->o_type == TYPE_PLAYER)
+ /* if (cpt->o_type == TYPE_PLAYER)
+ ^= this was the original condition from the game sourcecode.
+ not sure why it doesn't work*/
+ if (id == PLAYER)
_scriptVars[NEW_SCREEN] = screen;
else
cpt->o_screen = screen; // move the mega