From 410ffae3aba93fce8de88383f9abd2537277c308 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Tue, 1 May 2012 12:40:24 +0000 Subject: [PATCH] Patch adding Wii support by tueidj, part 9: build.h sector/wall/spr/... limits On the Wii, V7 (i.e. original) map limits are used and the maximum screen size is 1600x1200. git-svn-id: https://svn.eduke32.com/eduke32@2629 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/build.h | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/polymer/eduke32/build/include/build.h b/polymer/eduke32/build/include/build.h index bbca2407d..acb7c0251 100644 --- a/polymer/eduke32/build/include/build.h +++ b/polymer/eduke32/build/include/build.h @@ -24,10 +24,23 @@ extern "C" { #define MAXWALLSV7 8192 #define MAXSPRITESV7 4096 -#define MAXSECTORS MAXSECTORSV8 -#define MAXWALLS MAXWALLSV8 +#ifndef GEKKO +# define MAXSECTORS MAXSECTORSV8 +# define MAXWALLS MAXWALLSV8 +# define MAXSPRITES MAXSPRITESV8 + +# define MAXXDIM 7680 +# define MAXYDIM 3200 +#else +# define MAXSECTORS MAXSECTORSV7 +# define MAXWALLS MAXWALLSV7 +# define MAXSPRITES MAXSPRITESV7 + +# define MAXXDIM 1600 +# define MAXYDIM 1200 +#endif + #define MAXWALLSB ((MAXWALLS>>2)+(MAXWALLS>>3)) -#define MAXSPRITES MAXSPRITESV8 // additional space beyond wall, in walltypes: #define M32_FIXME_WALLS 512 @@ -37,8 +50,6 @@ extern "C" { #define MAXVOXELS 4096 #define MAXSTATUS 1024 #define MAXPLAYERS 16 -#define MAXXDIM 7680 -#define MAXYDIM 3200 #define MAXBASEPALS 8 #define MAXPALOOKUPS 256 #define MAXPSKYMULTIS 8