From bada760c56e4614aa466064eb6c84caa3c2f65b3 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Tue, 28 Sep 2010 21:58:36 +0000 Subject: [PATCH] Make pointer checking on save disabled by default. git-svn-id: https://svn.eduke32.com/eduke32@1709 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/astub.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index 294968181..11ebff5df 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -62,7 +62,7 @@ static int32_t floor_over_floor; static char setupfilename[]= "mapster32.cfg"; static char defaultduke3dgrp[BMAX_PATH] = "duke3d.grp"; static char *g_grpNamePtr = defaultduke3dgrp; -static int32_t fixmapbeforesaving = 1; +static int32_t fixmapbeforesaving = 0; static int32_t lastsave = -180*60; static int32_t NoAutoLoad = 0; static int32_t spnoclip=1; @@ -7264,7 +7264,8 @@ static void G_ShowParameterHelp(void) "-gFILE, -grp FILE\tUse extra group file FILE\n" "-hFILE\t\tUse definitions file FILE\n" "-jDIR, -game_dir DIR\n\t\tAdds DIR to the file path stack\n" - "-nocheck\t\tDisables map pointer checking when saving\n" + "-check\t\tEnables map pointer checking when saving\n" + "-nocheck\t\tDisables map pointer checking when saving (default)\n" // kept for script compat #if defined RENDERTYPEWIN || (defined RENDERTYPESDL && !defined __APPLE__ && defined HAVE_GTK2) "-setup\t\tDisplays the configuration dialog\n" #endif @@ -7416,6 +7417,13 @@ static void G_CheckCommandLine(int32_t argc, const char **argv) i++; continue; } + if (!Bstrcasecmp(c+1,"check")) + { + initprintf("Map pointer checking on saving enabled\n"); + fixmapbeforesaving = 1; + i++; + continue; + } if (!Bstrcasecmp(c+1,"nocheck")) { initprintf("Map pointer checking disabled\n");