Don't implicitly enable a door prop when AI scripting attempts to open a disabled door

This commit is contained in:
Ryan Dwyer 2022-12-31 19:26:55 +10:00
parent 4bdb84546e
commit bec089ea11
1 changed files with 1 additions and 1 deletions

View File

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