mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-15 01:46:30 +01:00
Thou shalt not act recursively. (#6640)
This commit is contained in:
@@ -113,7 +113,6 @@ var/datum/controller/subsystem/chemistry/SSchemistry
|
||||
if (holder in active_holders)
|
||||
return
|
||||
|
||||
//Process once, right away. If we still need to continue then add to the active_holders list and continue later
|
||||
if (holder.process_reactions())
|
||||
active_holders += holder
|
||||
|
||||
|
||||
@@ -123,8 +123,11 @@
|
||||
for(var/datum/chemical_reaction/C in effect_reactions)
|
||||
C.post_reaction(src)
|
||||
|
||||
update_holder(equalize_temperature()) //If the thermal energy of the reagents is different after a reaction, then run process_reactions again.
|
||||
return reaction_occured
|
||||
var/temps_updated = equalize_temperature()
|
||||
|
||||
update_holder(reactions = reaction_occured)
|
||||
|
||||
return temps_updated
|
||||
|
||||
/* Holder-to-chemical */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user