mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-02 09:47:58 +03:00
Added turn switch setup code
This commit is contained in:
parent
f43e7b863b
commit
3f28ca6be0
1 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue