From e9a2486eab8de2f50ef84a0ed44bd1d0be374d3e Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sat, 9 Dec 2017 00:02:07 +0100 Subject: [PATCH] fix age of dead people --- src/creature/creature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/creature/creature.cpp b/src/creature/creature.cpp index eebd4f6..6f619b9 100644 --- a/src/creature/creature.cpp +++ b/src/creature/creature.cpp @@ -266,7 +266,7 @@ void Creature::AddParent(Creature &p) { } double Creature::Age() const noexcept { - return sim.Time() - birth; + return Dead() ? death - birth : sim.Time() - birth; } double Creature::AgeFactor(double peak) const noexcept { -- 2.39.2