summaryrefslogtreecommitdiffstats
path: root/src/core/Stats.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-02-15 12:53:42 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-02-15 12:53:42 +0100
commit043efaf082a8ce5010e6ff974afea05d8d66e9d1 (patch)
tree40115f81c6a4b4756743a36485eacd4b7a5607b9 /src/core/Stats.cpp
parentMerge branch 'master' of https://github.com/Nick007J/re3 (diff)
downloadre3-043efaf082a8ce5010e6ff974afea05d8d66e9d1.tar
re3-043efaf082a8ce5010e6ff974afea05d8d66e9d1.tar.gz
re3-043efaf082a8ce5010e6ff974afea05d8d66e9d1.tar.bz2
re3-043efaf082a8ce5010e6ff974afea05d8d66e9d1.tar.lz
re3-043efaf082a8ce5010e6ff974afea05d8d66e9d1.tar.xz
re3-043efaf082a8ce5010e6ff974afea05d8d66e9d1.tar.zst
re3-043efaf082a8ce5010e6ff974afea05d8d66e9d1.zip
Diffstat (limited to 'src/core/Stats.cpp')
-rw-r--r--src/core/Stats.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/Stats.cpp b/src/core/Stats.cpp
index c1259f82..cd5bee06 100644
--- a/src/core/Stats.cpp
+++ b/src/core/Stats.cpp
@@ -32,8 +32,14 @@ int32 &CStats::MissionsGiven = *(int32*)0x9430E8;
int32 &CStats::MissionsPassed = *(int32*)0x940768;
char(&CStats::LastMissionPassedName)[8] = *(char(*)[8])*(uintptr*)0x70D828;
int32 &CStats::TotalLegitimateKills = *(int32*)0x8F6004;
+int32 &CStats::ElBurroTime = *(int32*)0x8E2A6C;
void CStats::AnotherKillFrenzyPassed()
{
++NumberKillFrenziesPassed;
}
+
+void CStats::RegisterElBurroTime(int32 time)
+{
+ ElBurroTime = (ElBurroTime && ElBurroTime < time) ? ElBurroTime : time;
+}