Fixed vehicles in preview exploding. (#2908)

* Closes #2905

* Fixed set_mp_bitset being called from vehicle::spawned if the is_networked parameter was false.
This commit is contained in:
gir489 2024-04-04 03:43:10 -04:00 committed by GitHub
parent 65c2aa9b16
commit c06cbdf3bb
2 changed files with 3 additions and 1 deletions

View File

@ -159,6 +159,8 @@ namespace big
ENTITY::FREEZE_ENTITY_POSITION(m_current_ent, true);
ENTITY::SET_ENTITY_ALPHA(m_current_ent, 0, false);
ENTITY::SET_ENTITY_COLLISION(m_current_ent, false, false);
ENTITY::SET_ENTITY_CAN_BE_DAMAGED(m_current_ent, false);
ENTITY::SET_ENTITY_PROOFS(m_current_ent, true, true, true, true, true, true, true, true);
ENTITY::SET_CAN_CLIMB_ON_ENTITY(m_current_ent, false);
OBJECT::SET_OBJECT_ALLOW_LOW_LOD_BUOYANCY(m_current_ent, false);
}

View File

@ -158,7 +158,7 @@ namespace big::vehicle
STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(hash);
if (*g_pointers->m_gta.m_is_session_started)
if (is_networked && *g_pointers->m_gta.m_is_session_started)
{
set_mp_bitset(veh);
}