change point-of-interest marker of player to marker_race
This commit is contained in:
parent
578ccd6bcb
commit
ff30fec17e
11
src/cmd.rs
11
src/cmd.rs
|
@ -1602,7 +1602,7 @@ fn spawn_entities(
|
||||||
load_asset(ar_asset_name.as_str(), &mut entitycmd, &*asset_server);
|
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((
|
let mut entitycmd = commands.spawn((
|
||||||
hud::PointOfInterestMarker(actor_entity),
|
hud::PointOfInterestMarker(actor_entity),
|
||||||
world::DespawnOnPlayerDeath,
|
world::DespawnOnPlayerDeath,
|
||||||
|
@ -1614,12 +1614,17 @@ fn spawn_entities(
|
||||||
NotShadowCaster,
|
NotShadowCaster,
|
||||||
NotShadowReceiver,
|
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"
|
"point_of_interest"
|
||||||
} else if state.is_planet {
|
} else if state.is_planet {
|
||||||
"marker_planets"
|
"marker_planets"
|
||||||
} else {
|
} else if state.is_moon {
|
||||||
"marker_satellites"
|
"marker_satellites"
|
||||||
|
} else {
|
||||||
|
error!("Can't determine 3d model for point-of-interest marker!");
|
||||||
|
"error"
|
||||||
};
|
};
|
||||||
load_asset(model, &mut entitycmd, &*asset_server);
|
load_asset(model, &mut entitycmd, &*asset_server);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue