diff --git a/src/services/model_preview/model_preview_service.cpp b/src/services/model_preview/model_preview_service.cpp index d4fa7d6a..4566c7da 100644 --- a/src/services/model_preview/model_preview_service.cpp +++ b/src/services/model_preview/model_preview_service.cpp @@ -204,12 +204,12 @@ namespace big ENTITY::SET_ENTITY_COORDS(m_current_ent, location.x, location.y, location.z, 0, 0, 0, 0); } - if (m_heading += 0.5f; m_heading > 359) + if (m_heading += 0.11111f; m_heading > 359) { m_heading = 0; } - script::get_current()->yield(15ms); + script::get_current()->yield(); } entity::delete_entity(m_current_ent, true); diff --git a/src/util/vehicle.cpp b/src/util/vehicle.cpp index 12d6ba00..550bf540 100644 --- a/src/util/vehicle.cpp +++ b/src/util/vehicle.cpp @@ -371,12 +371,12 @@ namespace big::vehicle } VEHICLE::SET_VEHICLE_MOD_KIT(vehicle, 0); - script::get_current()->yield(10ms); + //script::get_current()->yield(10ms); VEHICLE::SET_VEHICLE_NUMBER_PLATE_TEXT_INDEX(vehicle, owned_mods[MOD_PLATE_STYLE]); VEHICLE::SET_VEHICLE_WINDOW_TINT(vehicle, owned_mods[MOD_WINDOW_TINT]); VEHICLE::SET_VEHICLE_WHEEL_TYPE(vehicle, owned_mods[MOD_WHEEL_TYPE]); - script::get_current()->yield(10ms); + //script::get_current()->yield(10ms); VEHICLE::SET_VEHICLE_COLOURS(vehicle, owned_mods[MOD_PRIMARY_COL], owned_mods[MOD_SECONDARY_COL]); VEHICLE::SET_VEHICLE_EXTRA_COLOURS(vehicle, owned_mods[MOD_PEARLESCENT_COL], owned_mods[MOD_WHEEL_COL]); diff --git a/src/views/vehicle/spawn/view_persist_car.cpp b/src/views/vehicle/spawn/view_persist_car.cpp index 341e8e42..1ea7dc4d 100644 --- a/src/views/vehicle/spawn/view_persist_car.cpp +++ b/src/views/vehicle/spawn/view_persist_car.cpp @@ -131,8 +131,8 @@ namespace big selected_vehicle_file = pair; g_fiber_pool->queue_job([] { load_vehicle(selected_vehicle_file); - g_model_preview_service->stop_preview(); }); + g_model_preview_service->stop_preview(); } if (!g.persist_car.preview_vehicle || (g.persist_car.preview_vehicle && !ImGui::IsAnyItemHovered()))