Skip to content

Commit

Permalink
Disable door asserts (Resolves s1lentq#926)
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Jan 31, 2024
1 parent 2d957a7 commit bde6aa0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions regamedll/dlls/buttons.cpp
Original file line number Diff line number Diff line change
@@ -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),
Expand Down
10 changes: 7 additions & 3 deletions regamedll/dlls/doors.cpp
Original file line number Diff line number Diff line change
@@ -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),
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit bde6aa0

Please sign in to comment.