mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-22 20:17:24 +08:00
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
65c2aa9b16
commit
c06cbdf3bb
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user