From 350bafee54c6a03567e793b1aa64f4c7f46f37b5 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 23 Sep 2013 22:53:26 +0000 Subject: [PATCH] try to work with non-portals progs too. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4480 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/net_preparse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/server/net_preparse.c b/engine/server/net_preparse.c index f3fe39990..316525b84 100644 --- a/engine/server/net_preparse.c +++ b/engine/server/net_preparse.c @@ -671,7 +671,8 @@ void NPP_NQFlush(void) { /*hexen2 does something like this in the client, but we don't support those protocols, so translate to something usable*/ char *title[13] = {"gfx/finale.lmp", "gfx/meso.lmp", "gfx/egypt.lmp", "gfx/roman.lmp", "gfx/castle.lmp", "gfx/castle.lmp", "gfx/end-1.lmp", "gfx/end-2.lmp", "gfx/end-3.lmp", "gfx/castle.lmp", "gfx/mpend.lmp", "gfx/mpmid.lmp", "gfx/end-3.lmp"}; - int lookup[13] = {394, 395, 396, 397, 358, 411, 386+6, 386+7, 386+8, 391, 538, 545, 561}; + int lookup[13] = {394, 395, 396, 397, 358, strcmp(T_GetString(400+5*2+1), "BAD STRING")?400+5*2+1:400+4*2, 386+6, 386+7, 386+8, 391, 538, 545, 561}; + //5 is the demo sell screen, which changes depending on hexen2 vs portals. if (buffer[1] < 13) { h2title = title[buffer[1]];