Added turn switch setup code

This commit is contained in:
MontyTRC89 2021-09-08 10:03:43 +02:00
parent f43e7b863b
commit 3f28ca6be0

View file

@ -14,6 +14,7 @@
#include "underwater_switch.h"
#include "pulley_switch.h"
#include "fullblock_switch.h"
#include "turn_switch.h"
// Doors
#include "generic_doors.h"
@ -256,6 +257,15 @@ void StartSwitches()
obj->saveAnim = true;
}
obj = &Objects[ID_TURN_SWITCH];
if (obj->loaded)
{
obj->control = TurnSwitchControl;
obj->collision = TurnSwitchCollision;
obj->saveFlags = true;
obj->saveAnim = true;
}
obj = &Objects[ID_SEQUENCE_SWITCH1];
if (obj->loaded)
{