You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/mob/living/infect_disease() now compares the uniqueID and subID directly (#5484)
## About The Pull Request
Previously, this line concatenated the unique ID and sub ID into a
string, and compared that.
However, the use of a string here was completely unnecessary, and we
could just compare the values directly, which is infinitely faster.
## Why It's Good For The Game
performance number go up weeee
## Changelog
N/A no player-facing changes
for(var/datum/disease/acute/Das anything in diseases)
33
-
if("[disease.uniqueID]-[disease.subID]"=="[D.uniqueID]-[D.subID]") // child ids are for pathogenic mutations and aren't accounted for as thats fucked.
32
+
for(var/datum/disease/acute/old_diseaseas anything in diseases)
33
+
if(disease.uniqueID== old_disease.uniqueID &&disease.subID ==old_disease.subID) // child ids are for pathogenic mutations and aren't accounted for as thats fucked.
0 commit comments