From ff30fec17ece78042c2d1471e9b09617cf6b060b Mon Sep 17 00:00:00 2001 From: yuni Date: Mon, 25 Nov 2024 20:44:07 +0100 Subject: [PATCH] change point-of-interest marker of player to `marker_race` --- src/cmd.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/cmd.rs b/src/cmd.rs index fc7cb79..aeeb860 100644 --- a/src/cmd.rs +++ b/src/cmd.rs @@ -1602,7 +1602,7 @@ fn spawn_entities( load_asset(ar_asset_name.as_str(), &mut entitycmd, &*asset_server); } - if state.is_point_of_interest || state.is_moon || state.is_planet { + if state.is_point_of_interest || state.is_player || state.is_moon || state.is_planet { let mut entitycmd = commands.spawn(( hud::PointOfInterestMarker(actor_entity), world::DespawnOnPlayerDeath, @@ -1614,12 +1614,17 @@ fn spawn_entities( NotShadowCaster, NotShadowReceiver, )); - let model = if state.is_point_of_interest { + let model = if state.is_player { + "marker_race" + } else if state.is_point_of_interest { "point_of_interest" } else if state.is_planet { "marker_planets" - } else { + } else if state.is_moon { "marker_satellites" + } else { + error!("Can't determine 3d model for point-of-interest marker!"); + "error" }; load_asset(model, &mut entitycmd, &*asset_server); }