Skip to content

Commit

Permalink
Disabled log spam "Invalid vertex for object ..."
Browse files Browse the repository at this point in the history
I had a mistake with expression... But whatever, let's crash like it was
before
  • Loading branch information
Xottab-DUTY committed Jul 1, 2018
1 parent 40c6065 commit c978c6b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/xrGame/alife_switch_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,8 @@ void CALifeSwitchManager::add_online(CSE_ALifeDynamicObject* object, bool update
server().Process_spawn(tNetPacket, clientID, FALSE, l_tpAbstract);
object->s_flags._and (u16(-1) ^ M_SPAWN_UPDATE);

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

#ifdef DEBUG
if (psAI_Flags.test(aiALife))
Expand Down

0 comments on commit c978c6b

Please sign in to comment.