Skip to content

Commit

Permalink
Rebounded shots can kill destructible traps too
Browse files Browse the repository at this point in the history
  • Loading branch information
Loobinex committed Jul 28, 2024
1 parent 3db0f81 commit fe9f778
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/thing_shots.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,9 +1205,12 @@ long shot_hit_creature_at(struct Thing *shotng, struct Thing *trgtng, struct Coo
pos2.y.val = killertng->mappos.y.val;
if(thing_is_deployed_trap(killertng))
{

pos2.z.val = killertng->mappos.z.val;
pos2.z.val += (killertng->clipbox_size_z >> 1);
if (thing_is_destructible_trap(killertng))
{
shotng->shot.hit_type = THit_CrtrsNObjctsNotOwn;
}
}
else
{
Expand Down

0 comments on commit fe9f778

Please sign in to comment.