mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Fixed a very serious runtime error spam that I may have unintentionally caused a while ago. This may or may not actually speed up the server a bit.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1887 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -298,14 +298,16 @@ datum
|
||||
my_atom.on_reagent_change()
|
||||
|
||||
// mix dem viruses
|
||||
if(R.data && R.data["viruses"] || data &&data["viruses"])
|
||||
var/list/this = R.data["viruses"]
|
||||
var/list/that = data["viruses"]
|
||||
this += that // combine the two
|
||||
if(R.data && data)
|
||||
if(R.data && R.data["viruses"] || data && data["viruses"])
|
||||
var/list/this = R.data["viruses"]
|
||||
var/list/that = data["viruses"]
|
||||
this += that // combine the two
|
||||
|
||||
for(var/datum/disease/D in this) // makes sure no two viruses are in the reagent at the same time
|
||||
for(var/datum/disease/d in this)
|
||||
d.cure(0)
|
||||
for(var/datum/disease/D in this) // makes sure no two viruses are in the reagent at the same time
|
||||
for(var/datum/disease/d in this)
|
||||
if(d != D)
|
||||
D.cure(0)
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user