Fix bug when starting multiplayer Chex Quest games.

The server was rejecting connects when running with chex.wad, because it
was expecting the gamemode to be shareware; in fact, chex.wad contains
four episodes worth of levels (even though only five levels are used).
Technically it is therefore a retail IWAD and we should expect
gamemode=retail when using it. This fixes #647; thanks to Danfun64 for
reporting the bug.
This commit is contained in:
Simon Howard 2015-12-25 13:33:59 +01:00
parent 9cc55c7f01
commit b0585fa6ec

View file

@ -30,7 +30,7 @@ static struct
int episode; int episode;
int map; int map;
} valid_modes[] = { } valid_modes[] = {
{ pack_chex, shareware, 1, 5 }, { pack_chex, retail, 1, 5 },
{ doom, shareware, 1, 9 }, { doom, shareware, 1, 9 },
{ doom, registered, 3, 9 }, { doom, registered, 3, 9 },
{ doom, retail, 4, 9 }, { doom, retail, 4, 9 },