change point-of-interest marker of player to marker_race

This commit is contained in:
yuni 2024-11-25 20:44:07 +01:00
parent 578ccd6bcb
commit ff30fec17e

View file

@ -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);
}