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:
parent
6ec9d24743
commit
5703338d67
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user