fix getting Turtle Arena servers

Gamespy, Turtle Arena, and Alien Arena in side plane were switching around
(mixing up titles and masters). The Options tab in perferences was connected
to wrong game too. Caused by mismatch of server_type enum and games array in
src/games.c. Some functions like game_get_attribute assume the same order.

Add missing qstat config for Turtle Arena.
This commit is contained in:
Zack Middleton 2014-10-24 16:16:57 -05:00
parent e16cd6919d
commit a3f041f452
2 changed files with 18 additions and 1 deletions

View File

@ -474,6 +474,23 @@ gametype ZEQ2LITEM new extend Q3M
master for gametype = ZEQ2LITES
end
# id Tech 3 fork (ioQuake3 engine, Quake 3 derivative)
gametype TURTLEARENAS new extend Q3S
name = Turtle Arena
template var = TURTLEARENA
game rule = gamename
end
gametype TURTLEARENAM new extend Q3M
name = Turtle Arena Master
template var = TURTLEARENAMASTER
default port = 27950
master packet = \377\377\377\377getservers TurtleArena %s %s
master protocol = 9
master query = empty full
master for gametype = TURTLEARENAS
end
# id Tech 2 fork (CRX engine, Quake 2 derivative)
gametype ALIENARENAS new extend Q2S
name = Alien Arena

View File

@ -151,9 +151,9 @@ enum server_type {
REACTION_SERVER,
SMOKINGUNS_SERVER,
ZEQ2LITE_SERVER,
TURTLEARENA_SERVER,
GPS_SERVER,
ALIENARENA_SERVER,
TURTLEARENA_SERVER,
UNKNOWN_SERVER
};