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
2 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue