Runtime fixes:

runtime error: list index out of bounds
proc name: attack (/obj/item/weapon/gun/projectile/russian/attack)

runtime error: Cannot read null.loc
proc name: Topic (/mob/living/silicon/pai/Topic)

I've also added Pewter to the list of spriters.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4553 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
johnsonmt88@gmail.com
2012-08-26 16:16:07 +00:00
parent fe3532cf26
commit 5eb6bd3b68
3 changed files with 6 additions and 1 deletions

View File

@@ -198,6 +198,7 @@
var/mob/living/M = src.loc
var/count = 0
while(!istype(M, /mob/living))
if(!M || !M.loc) return 0 //For a runtime where M ends up in nullspace (similar to bluespace but less colourful)
M = M.loc
count++
if(count >= 6)

View File

@@ -105,6 +105,10 @@
/obj/item/weapon/gun/projectile/russian/attack(atom/target as mob|obj|turf|area, mob/living/user as mob|obj)
if(!loaded.len)
user.visible_message("\red *click*", "\red *click*")
return
if(isliving(target) && isliving(user))
if(target == user)
var/datum/organ/external/affecting = user.zone_sel.selecting