From f4703a596dfda5b3f53f27f6276abc032cf004a1 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sat, 26 Nov 2011 14:12:44 +0000 Subject: [PATCH] Auto-correct the just mentioned inconsistency by clearing the respective TROR nextwalls. (i.e. setting them to -1 on 'corruptcheck tryfix') git-svn-id: https://svn.eduke32.com/eduke32@2134 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/astub.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index a3f93b375..2add753e2 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -11646,10 +11646,22 @@ int32_t CheckMapCorruption(int32_t printfromlev, uint64_t tryfixing) if (bunchnum < 0 || bunchnum >= numyaxbunches) { - CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL %d has %s=%d, " - "but its %s bunchnum=%d is invalid\n", - j, YUPDOWNWALL[cf], ynw, - cf==YAX_CEILING? "ceiling":"floor", bunchnum); + if (tryfixing == 0ull) + { + CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL %d has %s=%d, " + "but its %s bunchnum=%d is invalid", + j, YUPDOWNWALL[cf], ynw, + cf==YAX_CEILING? "ceiling":"floor", bunchnum); + OSD_Printf(" will clear wall %d's %s to -1 on tryfix\n", + j, yupdownwall[cf]); + + } + else if (tryfixing & (1ull<