Skip to content

Commit c978c6b

Browse files
committed
Disabled log spam "Invalid vertex for object ..."
I had a mistake with expression... But whatever, let's crash like it was before
1 parent 40c6065 commit c978c6b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/xrGame/alife_switch_manager.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,8 @@ void CALifeSwitchManager::add_online(CSE_ALifeDynamicObject* object, bool update
6161
server().Process_spawn(tNetPacket, clientID, FALSE, l_tpAbstract);
6262
object->s_flags._and (u16(-1) ^ M_SPAWN_UPDATE);
6363

64-
// Xottab_DUTY: Workaround for crash with corpses that end up outside AI map
65-
//R_ASSERT3(!object->used_ai_locations() || ai().level_graph().valid_vertex_id(object->m_tNodeID),
66-
// "Invalid vertex for object ", object->name_replace());
67-
if (!object->used_ai_locations() || ai().level_graph().valid_vertex_id(object->m_tNodeID))
68-
Msg("Invalid vertex for object %s", object->name_replace());
64+
R_ASSERT3(!object->used_ai_locations() || ai().level_graph().valid_vertex_id(object->m_tNodeID),
65+
"Invalid vertex for object ", object->name_replace());
6966

7067
#ifdef DEBUG
7168
if (psAI_Flags.test(aiALife))

0 commit comments

Comments
 (0)