refactor: eVehicleFlags::ACTIVE changed to TRIGGER_SPAWN_TOGGLE

This commit is contained in:
Yimura 2022-01-08 17:46:58 +01:00
parent f6ba4d8257
commit b7a0c39c02
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
2 changed files with 4 additions and 3 deletions

View File

@ -15,9 +15,10 @@ namespace big
enum eVehicleFlags
{
ACTIVE = 1 << 0,
TRIGGER_SPAWN_TOGGLE = 1 << 0,
DESTROYED = 1 << 1,
HAS_INSURANCE = 1 << 2,
PEGASUS = 1 << 3, // unsure
IMPOUNDED = 1 << 6,
UNK1 = 1 << 10,
UNK2 = 1 << 11,

View File

@ -20,7 +20,7 @@ namespace big::mobile
{
misc::clear_bits(
vehicle_global.at(get_current_personal_vehicle(), 142).at(103).as<int*>(),
eVehicleFlags::ACTIVE | eVehicleFlags::UNK2
eVehicleFlags::TRIGGER_SPAWN_TOGGLE | eVehicleFlags::UNK2
);
}
@ -94,7 +94,7 @@ namespace big::mobile
);
misc::set_bits(
vehicle_global.at(veh_idx, 142).at(103).as<int*>(),
eVehicleFlags::ACTIVE | eVehicleFlags::UNK2
eVehicleFlags::TRIGGER_SPAWN_TOGGLE | eVehicleFlags::UNK2
);
}
return can_be_fixed;