Skip to content

Commit

Permalink
Merge pull request tgstation#887 from Aranclanos/Pinpointer
Browse files Browse the repository at this point in the history
Pinpointer fix.
  • Loading branch information
Giacom committed Jul 1, 2013
2 parents df13e6f + 6debf6b commit f48b964
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions code/game/gamemodes/nuclear/pinpointer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@
if(!target)
icon_state = "pinonnull"
return
if(target.z != loc.z)

var/turf/T = get_turf(target)
var/turf/L = get_turf(src)

if(T.z != L.z)
icon_state = "pinonnull"
else
dir = get_dir(src, target)
switch(get_dist(src, target))
if(0)
dir = get_dir(L, T)
switch(get_dist(L, T))
if(-1)
icon_state = "pinondirect"
if(1 to 8)
icon_state = "pinonclose"
Expand Down

0 comments on commit f48b964

Please sign in to comment.