1
This commit is contained in:
parent
77cb356106
commit
d440ff727d
@ -1159,13 +1159,13 @@ void Bullet::ReportHookHitPos(int hit_obj_uniid, const glm::vec3& hit_pos)
|
|||||||
BulletCheckResult result;
|
BulletCheckResult result;
|
||||||
Creature* hit_obj = room->GetCreatureByUniId(hit_obj_uniid);
|
Creature* hit_obj = room->GetCreatureByUniId(hit_obj_uniid);
|
||||||
//GetHitCreatures(result);
|
//GetHitCreatures(result);
|
||||||
|
result.flyed_distance = std::min(distance, gun_meta->range() + 1.0f);
|
||||||
if (hit_obj) {
|
if (hit_obj) {
|
||||||
++result.c_hit_num;
|
++result.c_hit_num;
|
||||||
result.objects.insert(hit_obj);
|
result.objects.insert(hit_obj);
|
||||||
} else {
|
} else {
|
||||||
distance = gun_meta->range() + 1;
|
distance = gun_meta->range() + 1;
|
||||||
}
|
}
|
||||||
result.flyed_distance = distance;
|
|
||||||
ProcNormalBullet(result);
|
ProcNormalBullet(result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user