mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-28 15:45:41 +03:00
Disable door asserts (Resolves #926)
This commit is contained in:
parent
2d957a7915
commit
bde6aa07bc
@ -1,5 +1,12 @@
|
|||||||
#include "precompiled.h"
|
#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[] =
|
TYPEDESCRIPTION CEnvGlobal::m_SaveData[] =
|
||||||
{
|
{
|
||||||
DEFINE_FIELD(CEnvGlobal, m_globalstate, FIELD_STRING),
|
DEFINE_FIELD(CEnvGlobal, m_globalstate, FIELD_STRING),
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
#include "precompiled.h"
|
#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[] =
|
TYPEDESCRIPTION CBaseDoor::m_SaveData[] =
|
||||||
{
|
{
|
||||||
DEFINE_FIELD(CBaseDoor, m_bHealthValue, FIELD_CHARACTER),
|
DEFINE_FIELD(CBaseDoor, m_bHealthValue, FIELD_CHARACTER),
|
||||||
@ -695,10 +702,7 @@ void CBaseDoor::DoorGoDown()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DOOR_ASSERT
|
|
||||||
DbgAssert(m_toggle_state == TS_AT_TOP);
|
DbgAssert(m_toggle_state == TS_AT_TOP);
|
||||||
#endif
|
|
||||||
|
|
||||||
m_toggle_state = TS_GOING_DOWN;
|
m_toggle_state = TS_GOING_DOWN;
|
||||||
|
|
||||||
SetMoveDone(&CBaseDoor::DoorHitBottom);
|
SetMoveDone(&CBaseDoor::DoorHitBottom);
|
||||||
|
Loading…
Reference in New Issue
Block a user