From 08111ac1766ed4a660fb08b772df5dfebff8d69e Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Mon, 10 Apr 2017 14:52:44 -0400 Subject: [PATCH] Fix door functions --- common/ptimer.h | 3 ++- zone/lua_door.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/ptimer.h b/common/ptimer.h index d7398bea3..2232b55b5 100644 --- a/common/ptimer.h +++ b/common/ptimer.h @@ -22,7 +22,8 @@ #include #include -enum { //values for pTimerType +enum : int { //values for pTimerType + pTimerNegativeItemReuse = -1, // these grow down basically, we will have item ID * -1 for the timer ID pTimerStartAdventureTimer = 1, pTimerSurnameChange = 2, pTimerFeignDeath = 3, diff --git a/zone/lua_door.cpp b/zone/lua_door.cpp index 909294b92..1b39d3e54 100644 --- a/zone/lua_door.cpp +++ b/zone/lua_door.cpp @@ -200,6 +200,8 @@ luabind::scope lua_register_door() { .def("GetIncline", (uint32(Lua_Door::*)(void))&Lua_Door::GetIncline) .def("SetOpenType", (void(Lua_Door::*)(uint32))&Lua_Door::SetOpenType) .def("GetOpenType", (uint32(Lua_Door::*)(void))&Lua_Door::GetOpenType) + .def("SetDisableTimer", (void(Lua_Door::*)(bool))&Lua_Door::SetDisableTimer) + .def("GetDisableTimer", (bool(Lua_Door::*)(void))&Lua_Door::GetDisableTimer) .def("SetLockPick", (void(Lua_Door::*)(uint32))&Lua_Door::SetLockPick) .def("GetLockPick", (uint32(Lua_Door::*)(void))&Lua_Door::GetLockPick) .def("SetKeyItem", (void(Lua_Door::*)(uint32))&Lua_Door::SetKeyItem)