From b777eebd4d4bd3b974b11e1fc4968e6f2b0e65d5 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 12 Jan 2010 20:09:01 +0000 Subject: Place commercial level name strings consecutively in the same array, so that overflowing the end of one list accesses the start of the next. This trick is used by pl2.wad for its MAP33 secret level. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1806 --- src/st_stuff.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/st_stuff.c') diff --git a/src/st_stuff.c b/src/st_stuff.c index f92d2dda..c3226f1b 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -259,9 +259,6 @@ // Height, in lines. #define ST_OUTHEIGHT 1 -#define ST_MAPWIDTH \ - (strlen(mapnames[(gameepisode-1)*9+(gamemap-1)])) - #define ST_MAPTITLEX \ (SCREENWIDTH - ST_MAPWIDTH * ST_CHATFONTWIDTH) @@ -418,10 +415,6 @@ cheatseq_t cheat_clev = CHEAT("idclev", 2); cheatseq_t cheat_mypos = CHEAT("idmypos", 0); -// -extern char* mapnames[]; - - // // STATUS BAR CODE // -- cgit v1.2.3 From df6a794052bc5c5f28ca15eca7d924ae29002d85 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 14 Jan 2010 18:47:03 +0000 Subject: In Chex Quest, use the radiation suit colormap instead of the red colormaps that are usually used when taking damage (or using the berserk pack). This matches the Vanilla chex.exe behavior (thanks Fuzztooth). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1812 --- src/st_stuff.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/st_stuff.c') diff --git a/src/st_stuff.c b/src/st_stuff.c index c3226f1b..d48609b4 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -974,6 +974,17 @@ void ST_doPaletteStuff(void) else palette = 0; + // In Chex Quest, the player never sees red. Instead, the + // radiation suit palette is used to tint the screen green, + // as though the player is being covered in goo by an + // attacking flemoid. + + if (gameversion == exe_chex + && palette >= STARTREDPALS && palette < STARTREDPALS + NUMREDPALS) + { + palette = RADIATIONPAL; + } + if (palette != st_palette) { st_palette = palette; -- cgit v1.2.3