Fixes handle_organs() being called twice in Life()

This commit is contained in:
mwerezak
2014-12-13 19:50:12 -05:00
parent a99b3a2ca3
commit bef305dff1

View File

@@ -95,8 +95,10 @@
//Disabilities
handle_disabilities()
//Organ failure.
//Organs and blood
handle_organs()
handle_blood()
stabilize_body_temperature() //Body temperature adjusts itself (self-regulation)
//Random events (vomiting etc)
handle_random_events()
@@ -1096,10 +1098,6 @@
silent = 0
else //ALIVE. LIGHTS ARE ON
updatehealth() //TODO
if(!in_stasis)
stabilize_body_temperature() //Body temperature adjusts itself
handle_organs() //Optimized.
handle_blood()
if(health <= config.health_threshold_dead || (species.has_organ["brain"] && !has_brain()))
death()