mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-06-08 04:06:58 -04:00
Don't implicitly enable a door prop when AI scripting attempts to open a disabled door
This commit is contained in:
+1
-1
@@ -17162,7 +17162,7 @@ void doorSetMode(struct doorobj *door, s32 newmode)
|
||||
{
|
||||
if (newmode == DOORMODE_OPENING) {
|
||||
if (door->mode == DOORMODE_IDLE || door->mode == DOORMODE_WAITING) {
|
||||
if (!door->base.prop->active) {
|
||||
if (!door->base.prop->active && (door->base.prop->flags & PROPFLAG_ENABLED)) {
|
||||
propUnpause(door->base.prop);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user