From 9f76b784967d0ae5092b59fc0537960fb3352ff6 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Fri, 10 May 2013 12:31:38 +0000 Subject: [PATCH] Mapster32: for some nextwall/nextsector corruptions, suggest making wall white. Selected by writing e.g. 'corruptcheck tryfix 1-14 ??' in the console. Like with the first alternative, the corruption numbers / range (here, 1-14) must be given. git-svn-id: https://svn.eduke32.com/eduke32@3746 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/astub.c | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index 8fe3a19f2..094a54b4f 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -9148,10 +9148,18 @@ static int32_t osdcmd_vars_pk(const osdfuncparm_t *parm) char *endptr; for (i=1; inumparms; i++) { - if (i==parm->numparms-1 && !Bstrcmp(parm->parms[i], "?")) + if (i==parm->numparms-1) { - corrupt_tryfix_alt = 1; - break; + if (!Bstrcmp(parm->parms[i], "??")) + { + corrupt_tryfix_alt = 2; + break; + } + else if (!Bstrcmp(parm->parms[i], "?")) + { + corrupt_tryfix_alt = 1; + break; + } } n = (int32_t)Bstrtol(parm->parms[i], &endptr, 10); @@ -11426,11 +11434,13 @@ static void suggest_nextsector_correction(int32_t nw, int32_t j) } } } + + OSD_Printf(" ?? suggest making wall %d white\n", j); } static void do_nextsector_correction(int32_t nw, int32_t j) { - if (!corrupt_tryfix_alt) + if (corrupt_tryfix_alt==0) { if (nw>=0 && nw=0 && wall[j].nextsector