This commit is contained in:
aozhiwei 2024-03-28 15:50:36 +08:00
parent a529321b18
commit 095cbdd82b

View File

@ -3739,7 +3739,8 @@ void Room::MobaBatterysUpdate()
} }
return true; return true;
}); });
if (!target.Get() || last_distance <= 0.000001f) { if (!target.Get() ||
(target.Get() && last_distance <= 0.000001f)) {
break; break;
} }
@ -3748,6 +3749,9 @@ void Room::MobaBatterysUpdate()
const mt::Equip* weapon_meta = mt::Equip::GetById(std::get<2>(tuple)); const mt::Equip* weapon_meta = mt::Equip::GetById(std::get<2>(tuple));
if (!weapon_meta) { if (!weapon_meta) {
#ifdef MYDEBUG
abort();
#endif
return; return;
} }
@ -3767,5 +3771,8 @@ void Room::MobaBatterysUpdate()
nullptr, nullptr,
shot_uniid, shot_uniid,
-1); -1);
#ifdef MYDEBUG
a8::XPrintf("MobaBatterysUpdate fly_distanc:%f\n", {last_distance});
#endif
} }
} }