X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fcreature%2Fcreature.cpp;h=6f619b940b7aea79d87aaea0fce921157bd3eaca;hp=eebd4f6f51313ba0e6a9fd7ac4155be1513f4914;hb=e9a2486eab8de2f50ef84a0ed44bd1d0be374d3e;hpb=d05324febdb9f67d66a03a2f716c406289a047e1 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 {