mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
Bugfix for node enabling/disabling, which was previously allowing the player to walk through closed doors and into the walls
svn-id: r42162
This commit is contained in:
parent
c3d9acf309
commit
08df8dc272
@ -209,9 +209,9 @@ int setNodeState(int nodeIdx, int nodeState) {
|
||||
int oldState = walkboxState[nodeIdx];
|
||||
|
||||
if (nodeState == -1)
|
||||
return
|
||||
return oldState;
|
||||
|
||||
walkboxState[nodeIdx] = nodeState;
|
||||
walkboxState[nodeIdx] = nodeState;
|
||||
|
||||
return oldState;
|
||||
}
|
||||
|
@ -828,7 +828,7 @@ int16 Op_Preload(void) {
|
||||
}
|
||||
|
||||
int16 Op_LoadCt(void) {
|
||||
return initCt((char*)popPtr());
|
||||
return initCt((const char *)popPtr());
|
||||
}
|
||||
|
||||
int16 Op_EndAnim(void) {
|
||||
|
Loading…
Reference in New Issue
Block a user