Skip to content

Commit

Permalink
[MIRROR] Fix runtimes when ghosts observe humans
Browse files Browse the repository at this point in the history
  • Loading branch information
SierraKomodo authored and LordNest committed Jan 5, 2025
1 parent ac57944 commit 314cbe9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/modules/species/species_age_comparison.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
return

var/observed_real_age = observed.age + observed.changed_age
var/observer_real_age = observer.age + observer.changed_age
var/age_diff
var/age_percentile = round((observed_real_age / max_age) * 100)
var/age_descriptor
var/age_diff_descriptor
Expand All @@ -47,7 +45,8 @@
age_descriptor = age_descriptors[length(age_descriptors)]

if (istype(observer) && observed.get_species() == observer.get_species() && !observer.isSynthetic())
age_diff = observed_real_age - observer_real_age
var/observer_real_age = observer.age + observer.changed_age
var/age_diff = observed_real_age - observer_real_age
for (var/descriptor in age_diff_descriptors)
if (age_diff > age_diff_descriptors[descriptor])
continue
Expand Down

0 comments on commit 314cbe9

Please sign in to comment.