From DONOTREPLY at icculus.org Wed Sep 1 07:43:19 2010 From: DONOTREPLY at icculus.org (DONOTREPLY at icculus.org) Date: 1 Sep 2010 07:43:19 -0400 Subject: [quake3-commits] r1795 - trunk/code/q3_ui Message-ID: <20100901114319.29971.qmail@icculus.org> Author: thilo Date: 2010-09-01 07:43:19 -0400 (Wed, 01 Sep 2010) New Revision: 1795 Modified: trunk/code/q3_ui/ui_servers2.c Log: Fix flaw in my fix to #4737, thanks Zakk Middleton Modified: trunk/code/q3_ui/ui_servers2.c =================================================================== --- trunk/code/q3_ui/ui_servers2.c 2010-08-30 23:25:44 UTC (rev 1794) +++ trunk/code/q3_ui/ui_servers2.c 2010-09-01 11:43:19 UTC (rev 1795) @@ -672,7 +672,7 @@ } */ servernodeptr->nettype = atoi(Info_ValueForKey(info, "nettype")); - if (servernodeptr->nettype < 0 || servernodeptr->nettype >= ARRAY_LEN(netnames)) { + if (servernodeptr->nettype < 0 || servernodeptr->nettype >= ARRAY_LEN(netnames) - 1) { servernodeptr->nettype = 0; } From DONOTREPLY at icculus.org Wed Sep 1 07:50:09 2010 From: DONOTREPLY at icculus.org (DONOTREPLY at icculus.org) Date: 1 Sep 2010 07:50:09 -0400 Subject: [quake3-commits] r1796 - trunk/code/game Message-ID: <20100901115009.31929.qmail@icculus.org> Author: thilo Date: 2010-09-01 07:50:09 -0400 (Wed, 01 Sep 2010) New Revision: 1796 Modified: trunk/code/game/bg_public.h Log: Followup to #4733 Modified: trunk/code/game/bg_public.h =================================================================== --- trunk/code/game/bg_public.h 2010-09-01 11:43:19 UTC (rev 1795) +++ trunk/code/game/bg_public.h 2010-09-01 11:50:09 UTC (rev 1796) @@ -103,10 +103,10 @@ GT_TEAM, // team deathmatch GT_CTF, // capture the flag + GT_MAX_GAME_TYPE, // other gametypes haven't been implemented. GT_1FCTF, GT_OBELISK, - GT_HARVESTER, - GT_MAX_GAME_TYPE + GT_HARVESTER } gametype_t; typedef enum { GENDER_MALE, GENDER_FEMALE, GENDER_NEUTER } gender_t;