From b8ea49ee0e4ce6fcb4e8df0070625e080f788803 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 29 Jan 2022 12:53:30 +0100 Subject: [PATCH] - SW: bumped two hard limits because there's maps out there that exceed them. --- source/core/version.h | 4 ++-- source/games/sw/src/game.h | 4 ++-- source/games/sw/src/sector.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/core/version.h b/source/core/version.h index a6c3b1c43..0d4cb4d3e 100644 --- a/source/core/version.h +++ b/source/core/version.h @@ -71,12 +71,12 @@ const char *GetVersionString(); #define MINSAVEVER_DN3D 16 #define MINSAVEVER_BLD 16 -#define MINSAVEVER_SW 16 +#define MINSAVEVER_SW 17 #define MINSAVEVER_PS 16 #define SAVEVER_DN3D 16 #define SAVEVER_BLD 16 -#define SAVEVER_SW 16 +#define SAVEVER_SW 17 #define SAVEVER_PS 16 #define NETGAMEVERSION 1 diff --git a/source/games/sw/src/game.h b/source/games/sw/src/game.h index 27538765c..2b755cb29 100644 --- a/source/games/sw/src/game.h +++ b/source/games/sw/src/game.h @@ -1304,7 +1304,7 @@ struct SINE_WAVE_FLOOR enum { - MAX_SINE_WAVE = 6, + MAX_SINE_WAVE = 12, MAX_SINE_WALL = 10, MAX_SINE_WALL_POINTS = 64, }; @@ -1395,7 +1395,7 @@ enum { TF_TRACK_OCCUPIED = BIT(0), MAX_TRACKS = 100, - MAX_SO_SECTOR = 40, + MAX_SO_SECTOR = 50, MAX_SO_POINTS = (MAX_SO_SECTOR*15), MAX_SO_SPRITE = 60, MAX_CLIPBOX = 32 diff --git a/source/games/sw/src/sector.cpp b/source/games/sw/src/sector.cpp index 4296c8caa..486040270 100644 --- a/source/games/sw/src/sector.cpp +++ b/source/games/sw/src/sector.cpp @@ -2395,7 +2395,7 @@ void DoSineWaveWall(void) int New; short sw_num; - for (sw_num = 0; sw_num < MAX_SINE_WAVE; sw_num++) + for (sw_num = 0; sw_num < MAX_SINE_WALL; sw_num++) { for (sw = &SineWall[sw_num][0]; sw->wallp != nullptr && sw < &SineWall[sw_num][MAX_SINE_WALL_POINTS]; sw++) {