From 0a1afbd3f30adbc7315fd3777cdb273c830c7c68 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 30 Jan 2007 02:04:14 +0000 Subject: [PATCH] Minor fixes git-svn-id: https://svn.eduke32.com/eduke32@480 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/build/include/build.h | 4 +-- polymer/build/src/build.c | 2 +- polymer/eduke32/source/astub.c | 59 ++++++++++++++++++++-------------- polymer/eduke32/source/game.c | 1 + 4 files changed, 39 insertions(+), 27 deletions(-) diff --git a/polymer/build/include/build.h b/polymer/build/include/build.h index 294681eeb..e87b07c7d 100644 --- a/polymer/build/include/build.h +++ b/polymer/build/include/build.h @@ -29,8 +29,8 @@ extern "C" { #define MAXVOXELS 4096 #define MAXSTATUS 1024 #define MAXPLAYERS 16 -#define MAXXDIM 1600 -#define MAXYDIM 1200 +#define MAXXDIM 2048 +#define MAXYDIM 1536 #define MAXPALOOKUPS 256 #define MAXPSKYTILES 256 #define MAXSPRITESONSCREEN 4096 diff --git a/polymer/build/src/build.c b/polymer/build/src/build.c index 09c83d87f..c62a8c9ff 100644 --- a/polymer/build/src/build.c +++ b/polymer/build/src/build.c @@ -478,7 +478,7 @@ CANCEL: if (keystatus[0x15] != 0) { keystatus[0x15] = 0; - + fixspritesectors(); updatesector(startposx,startposy,&startsectnum); ExtPreSaveMap(); saveboard(boardfilename,&startposx,&startposy,&startposz,&startang,&startsectnum); diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index 376bd9181..5cd083be8 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -46,10 +46,11 @@ Modifications for JonoF's port by Jonathon Fowler (jonof@edgenetwk.com) short floor_over_floor; static char *startwin_labeltext = "Starting Mapster32..."; -static char setupfilename[BMAX_PATH]= "build.cfg"; +static char setupfilename[BMAX_PATH]= "mapster32.cfg"; static char defaultduke3dgrp[BMAX_PATH] = "duke3d.grp"; static char *duke3dgrp = defaultduke3dgrp; static int usecwd = 0; +static int fixmapbeforesaving = 1; static struct strllist { @@ -4279,32 +4280,34 @@ static void InitCustomColors(void) void ExtPreSaveMap(void) { - short i, startwall, j, endwall; + if (fixmapbeforesaving) + { + short i, startwall, j, endwall; - for (i=0;i=0;i--) - sector[i].wallnum = sector[i+1].wallptr-sector[i].wallptr; - sector[numsectors-1].wallnum = numwalls-sector[numsectors-1].wallptr; + for (i=0;i=0;i--) + sector[i].wallnum = sector[i+1].wallptr-sector[i].wallptr; + sector[numsectors-1].wallnum = numwalls-sector[numsectors-1].wallptr; - for (i=0;i