refactor: take_control_of (#962)

This commit is contained in:
Aure7138
2023-02-09 05:46:08 +08:00
committed by GitHub
parent f12cc48796
commit f9b59da443
5 changed files with 31 additions and 24 deletions

View File

@ -318,7 +318,7 @@ namespace big
if (ImGui::Selectable(name.c_str(), item_selected))
{
g_fiber_pool->queue_job([&mod, is_wheel_mod, wheel_stock_mod, wheel_custom] {
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(self::veh);
entity::take_control_of(self::veh);
if (selected_slot >= 0)
{