From 0142d6d77b3822787cd9799a0eb093d26ba2d34a Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 3 Apr 2024 12:27:43 +0200 Subject: [PATCH] fix vehicle visibility when exiting --- src/actor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actor.rs b/src/actor.rs index 484db25..8f22495 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -332,7 +332,7 @@ pub fn handle_vehicle_enter_exit( commands.entity(vehicle).remove::(); commands.entity(driver).insert(PlayerCamera); commands.entity(vehicle).remove::(); - *vehicle_vis = Visibility::Inherited; + *vehicle_vis = Visibility::Visible; } } }