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:
Paul Gilbert 2009-07-06 02:46:59 +00:00
parent c3d9acf309
commit 08df8dc272
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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) {