From 17ffe5383914b434ccb12ade60466b0d175de04c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 27 Dec 2019 14:02:21 +0100 Subject: [PATCH] clearing:: clear memory on new game --- complex.cpp | 2 ++ system.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/complex.cpp b/complex.cpp index 902b1019..57e76560 100644 --- a/complex.cpp +++ b/complex.cpp @@ -3361,6 +3361,8 @@ auto ccm = addHook(clearmemory, 0, [] () { princess::clear(); mirror::mirrors.clear(); clearing::bpdata.clear(); + clearing::stats.clear(); + clearing::score.clear(); tortoise::emap.clear(); tortoise::babymap.clear(); #if CAP_FIELD diff --git a/system.cpp b/system.cpp index c62563cc..d958fe9e 100644 --- a/system.cpp +++ b/system.cpp @@ -190,6 +190,9 @@ EX void initgame() { chaosAchieved = false; + clearing::direct = 0; + clearing::imputed = 0; + if(firstland == laElementalWall) cwt.at->land = randomElementalLand(); resetview();