坦克不压坦克

This commit is contained in:
aozhiwei 2019-08-29 15:52:30 +08:00
parent 6917e2f42b
commit 85fd001071

View File

@ -2002,7 +2002,7 @@ void Human::CheckSkinTank()
std::set<Human*> objects;
for (auto& grid : grid_list) {
for (Human* hum: grid->human_list) {
if (hum != this && !hum->dead &&
if (hum != this && !hum->dead && !hum->tank_weapon.meta &&
(hum->team_id == 0 || team_id != hum->team_id)) {
if (TestCollision(hum)) {
objects.insert(hum);