mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Level editor work
This commit is contained in:
@@ -994,6 +994,10 @@ void HandleSwitches (hotPtr who)
|
||||
roomLinked = masterObjects[whoLinked].roomLink;
|
||||
objectLinked = masterObjects[whoLinked].objectLink;
|
||||
linkIndex = masterObjects[whoLinked].localLink;
|
||||
|
||||
if (roomLinked < 0)
|
||||
return; // GP: Some objects (like Leviathan) have corrupted switch data
|
||||
|
||||
// change state of linked obj.
|
||||
if (SetObjectState(roomLinked, objectLinked,
|
||||
masterObjects[whoLinked].theObject.data.e.type, linkIndex))
|
||||
|
||||
Reference in New Issue
Block a user