- added a lock parameter to Door_Animated.

SVN r2167 (trunk)
This commit is contained in:
Christoph Oelckers 2010-02-17 22:25:48 +00:00
parent 4b04b94414
commit f02303d33c
2 changed files with 5 additions and 2 deletions

View file

@ -12,7 +12,7 @@ DEFINE_SPECIAL(Door_Close, 10, 2, 3, 3)
DEFINE_SPECIAL(Door_Open, 11, 2, 3, 3)
DEFINE_SPECIAL(Door_Raise, 12, 3, 4, 4)
DEFINE_SPECIAL(Door_LockedRaise, 13, 4, 5, 5)
DEFINE_SPECIAL(Door_Animated, 14, 3, 3, 3)
DEFINE_SPECIAL(Door_Animated, 14, 4, 4, 4)
DEFINE_SPECIAL(Autosave, 15, 0, 0, 0) // [RH] Save the game *now*
DEFINE_SPECIAL(Transfer_WallLight, 16, -1, -1, 2)
DEFINE_SPECIAL(Thing_Raise, 17, 1, 1, 1)

View file

@ -189,8 +189,11 @@ FUNC(LS_Door_CloseWaitOpen)
}
FUNC(LS_Door_Animated)
// Door_Animated (tag, speed, delay)
// Door_Animated (tag, speed, delay, lock)
{
if (arg3 != 0 && !P_CheckKeys (it, arg3, arg0 != 0))
return false;
return EV_SlidingDoor (ln, it, arg0, arg1, arg2);
}