Fixed bug with healing when organ gets burn damage equal to brute damage.

Fixed bug with cyborgs death logging to database. They got logged every cycle producing thousands of fake deaths it statistics. Attention, statistics of deaths now requires to delete erroneous records, we need some sql-experienced programmer to do that correctly.


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1348 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
rastaf.zero@gmail.com
2011-04-02 21:09:26 +00:00
parent 2457edfe0a
commit 7db4226cd3
2 changed files with 2 additions and 2 deletions
@@ -87,7 +87,7 @@
// else
// src.overlays -= "emag"
if(health < 0)
if(health < 0 && src.stat != 2) //die only once
death()
if (src.stat != 2) //Alive.
+1 -1
View File
@@ -35,7 +35,7 @@
/datum/organ/external/proc/heal_damage(brute, burn)
src.brute_dam = max(0, src.brute_dam - brute)
src.burn_dam = max(0, src.brute_dam - burn)
src.burn_dam = max(0, src.burn_dam - burn)
return update_icon()
/datum/organ/external/proc/get_damage() //returns total damage