Skip to content

Commit

Permalink
Fixes SNPCs thinking a bullet attack was a melee attack (which obviou…
Browse files Browse the repository at this point in the history
…sly causes issues with this system)
  • Loading branch information
RemieRichards committed Jul 1, 2015
1 parent 9f8a4be commit 4eba0b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion code/modules/mob/interactive.dm
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@
/mob/living/carbon/human/interactive/bullet_act(var/obj/item/projectile/P)
var/potentialAssault = locate(/mob/living) in view(2,P.starting)
if(potentialAssault)
attacked_by(P,potentialAssault)
retal = 1
retal_target = potentialAssault
..()

/mob/living/carbon/human/interactive/New()
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/living.dm
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ Sorry Giacom. Please don't be mad :(
I = image(r_hand.icon,A,r_hand.icon_state,A.layer+1)
if(I)
var/list/viewing = list()
for(var/mob/M in view(A))
for(var/mob/M in viewers(A))
if(M.client)
viewing |= M.client
flick_overlay(I,viewing,5)
Expand Down

0 comments on commit 4eba0b0

Please sign in to comment.