Disable door asserts (Resolves #926)

This commit is contained in:
s1lentq 2024-01-31 15:51:44 +07:00
parent 2d957a7915
commit bde6aa07bc
2 changed files with 14 additions and 3 deletions

View File

@ -1,5 +1,12 @@
#include "precompiled.h"
#if !defined(DOOR_ASSERT)
#undef DbgAssert
#undef DbgAssertMsg
#define DbgAssert(_exp) ((void)0)
#define DbgAssertMsg(_exp, _msg) ((void)0)
#endif
TYPEDESCRIPTION CEnvGlobal::m_SaveData[] =
{
DEFINE_FIELD(CEnvGlobal, m_globalstate, FIELD_STRING),

View File

@ -1,5 +1,12 @@
#include "precompiled.h"
#if !defined(DOOR_ASSERT)
#undef DbgAssert
#undef DbgAssertMsg
#define DbgAssert(_exp) ((void)0)
#define DbgAssertMsg(_exp, _msg) ((void)0)
#endif
TYPEDESCRIPTION CBaseDoor::m_SaveData[] =
{
DEFINE_FIELD(CBaseDoor, m_bHealthValue, FIELD_CHARACTER),
@ -695,10 +702,7 @@ void CBaseDoor::DoorGoDown()
}
}
#ifdef DOOR_ASSERT
DbgAssert(m_toggle_state == TS_AT_TOP);
#endif
m_toggle_state = TS_GOING_DOWN;
SetMoveDone(&CBaseDoor::DoorHitBottom);