Fix some fire issues. (Implements Redmine #135)

This commit is contained in:
Rob Nelson
2014-02-28 19:51:44 -05:00
committed by ZomgPonies
parent ebb188dbfd
commit 034a54cc62
+9 -3
View File
@@ -159,10 +159,16 @@
fire_stacks = min(0, fire_stacks)//So we dry ourselves back to default, nonflammable.
if(!on_fire)
return 1
var/datum/gas_mixture/G = loc.return_air() // Check if we're standing in an oxygenless environment
if(G.oxygen < 1)
var/oxy=0
var/turf/T=loc
if(istype(T))
var/datum/gas_mixture/G = loc.return_air() // Check if we're standing in an oxygenless environment
if(G)
oxy=G.oxygen
if(oxy < 1 || fire_stacks <= 0)
ExtinguishMob() //If there's no oxygen in the tile we're on, put out the fire
return
return 1
var/turf/location = get_turf(src)
location.hotspot_expose(700, 50, 1)