From 66bdc1e82346de0b544191acf6187c37a2bcb7a7 Mon Sep 17 00:00:00 2001 From: tritonas00 Date: Sun, 29 Aug 2021 15:22:55 +0300 Subject: [PATCH] fixed -enter cli argument --- source/main/GameContext.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/main/GameContext.cpp b/source/main/GameContext.cpp index d202361509..9fd4c434d3 100644 --- a/source/main/GameContext.cpp +++ b/source/main/GameContext.cpp @@ -230,6 +230,12 @@ Actor* GameContext::SpawnActor(ActorSpawnRequest& rq) { this->PushMessage(Message(MSG_SIM_SEAT_PLAYER_REQUESTED, (void*)fresh_actor)); } + if (fresh_actor->ar_driveable != NOT_DRIVEABLE && + fresh_actor->ar_num_nodes > 0 && + App::cli_preset_veh_enter->GetBool()) + { + this->PushMessage(Message(MSG_SIM_SEAT_PLAYER_REQUESTED, (void*)fresh_actor)); + } } else if (rq.asr_origin == ActorSpawnRequest::Origin::TERRN_DEF) {