From 85b65c26d3fe82dbb42b3750d28f917174107fa2 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sat, 10 Sep 2011 15:44:16 +0000 Subject: [PATCH] Mapster32: make the heinum&2 and stat inconsistency be displayed only once with 'corruptcheck now', but still print each corrected one on tryfix. git-svn-id: https://svn.eduke32.com/eduke32@2012 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/astub.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index 6302cce4b..ab9cb2909 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -11414,6 +11414,7 @@ int32_t CheckMapCorruption(int32_t printfromlev, uint64_t tryfixing) int32_t ewall=0; // expected wall index int32_t errlevel=0, bad=0; + int32_t heinumcheckstat = 0; // 1, 2 uint8_t *seen_nextwalls = NULL; int16_t *lastnextwallsource = NULL; @@ -11474,19 +11475,24 @@ int32_t CheckMapCorruption(int32_t printfromlev, uint64_t tryfixing) cs = !!(SECTORFLD(i,stat, j)&2); hn = (SECTORFLD(i,heinum, j)!=0); - if (cs != hn) + if (cs != hn && heinumcheckstat <= 1) { - if (numcorruptthings < MAXCORRUPTTHINGS && (tryfixing & (1ull<