Lightyear setup (#55)
This commit is contained in:
@@ -114,11 +114,11 @@ fn update_player_aim(
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(e) = &aim_target.0 {
|
||||
if commands.get_entity(*e).is_err() {
|
||||
aim_target.0 = None;
|
||||
return;
|
||||
}
|
||||
if let Some(e) = &aim_target.0
|
||||
&& commands.get_entity(*e).is_err()
|
||||
{
|
||||
aim_target.0 = None;
|
||||
return;
|
||||
}
|
||||
|
||||
if new_target != aim_target.0 {
|
||||
@@ -166,11 +166,11 @@ fn update_npc_aim(
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(e) = &aim_target.0 {
|
||||
if commands.get_entity(*e).is_err() {
|
||||
aim_target.0 = None;
|
||||
return;
|
||||
}
|
||||
if let Some(e) = &aim_target.0
|
||||
&& commands.get_entity(*e).is_err()
|
||||
{
|
||||
aim_target.0 = None;
|
||||
return;
|
||||
}
|
||||
|
||||
if new_target != aim_target.0 {
|
||||
|
||||
Reference in New Issue
Block a user