Stack of runtime error fixes.

Didn't feel like digging into the DNA code to find the cause of one of the errors I got sent, if anyone feels like taking a crack at it:

runtime error: list index out of bounds
proc name: updateappearance (/proc/updateappearance)
  source file: dna.dm,257
  usr: Walter Bishop (/mob/living/carbon/human)
  src: null
  call stack:
updateappearance(Walter Bishop (/mob/living/carbon/human), "0FF0000660FF000066DC0000000000...")
Walter Bishop (/mob/living/carbon/human): Transform()

What I know: He was a changeling transforming between DNAs, apparently he somehow got a set of hair DNA that was literally off the charts for determining what hairstyle it was

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@781 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3@gmail.com
2011-01-05 02:12:37 +00:00
parent 2e1948eb1c
commit cc51d5eeb1
9 changed files with 39 additions and 33 deletions
+3 -3
View File
@@ -181,9 +181,9 @@ datum
if(isobj(A)) spawn(0) R.reaction_obj(A, R.volume+volume_modifier)
if(INGEST)
for(var/datum/reagent/R in reagent_list)
if(ismob(A)) spawn(0) R.reaction_mob(A, INGEST, R.volume+volume_modifier)
if(isturf(A)) spawn(0) R.reaction_turf(A, R.volume+volume_modifier)
if(isobj(A)) spawn(0) R.reaction_obj(A, R.volume+volume_modifier)
if(ismob(A) && R) spawn(0) R.reaction_mob(A, INGEST, R.volume+volume_modifier)
if(isturf(A) && R) spawn(0) R.reaction_turf(A, R.volume+volume_modifier)
if(isobj(A) && R) spawn(0) R.reaction_obj(A, R.volume+volume_modifier)
return
add_reagent(var/reagent, var/amount, var/data=null)
+4 -4
View File
@@ -105,9 +105,9 @@ datum
if(D)
blood_prop.virus = new D.type
blood_prop.virus.holder = blood_prop
if(istype(T, /turf/simulated/floor))
if(istype(T, /turf/simulated/floor) && D)
blood_prop.virus.spread_type = CONTACT_FEET
else
else if (D)
blood_prop.virus.spread_type = CONTACT_HANDS
else if(istype(self.data["donor"], /mob/living/carbon/monkey))
@@ -184,7 +184,7 @@ datum
T:wet_overlay = null
var/hotspot = (locate(/obj/hotspot) in T)
if(hotspot)
if(hotspot && !istype(T, /turf/space))
var/datum/gas_mixture/lowertemp = T.remove_air( T:air:total_moles() )
lowertemp.temperature = max( min(lowertemp.temperature-2000,lowertemp.temperature / 2) ,0)
lowertemp.react()
@@ -195,7 +195,7 @@ datum
src = null
var/turf/T = get_turf(O)
var/hotspot = (locate(/obj/hotspot) in T)
if(hotspot)
if(hotspot && !istype(T, /turf/space))
var/datum/gas_mixture/lowertemp = T.remove_air( T:air:total_moles() )
lowertemp.temperature = max( min(lowertemp.temperature-2000,lowertemp.temperature / 2) ,0)
lowertemp.react()