arena files now contain "bot support" and "teams"

This commit is contained in:
q3rally 2021-07-08 15:21:20 +00:00
parent d4d94bd63d
commit 30a4363ed2
4 changed files with 34 additions and 19 deletions

View file

@ -353,6 +353,8 @@ typedef enum
MS_NUMPOWERUPS, MS_NUMPOWERUPS,
MS_REVERSABLE, MS_REVERSABLE,
MS_TRACKLENGTHS, MS_TRACKLENGTHS,
MS_BOTSUPPORT,
MS_NUMTEAMS,
MS_MAX_MAPSTATS MS_MAX_MAPSTATS
} mapstats_t; } mapstats_t;

View file

@ -131,7 +131,7 @@ typedef struct {
static startserver_t s_startserver; static startserver_t s_startserver;
static const char *gametype_items[] = { static const char *gametype_items[] = {
// STONELANCE
"Racing", "Racing",
"Racing Deathmatch", "Racing Deathmatch",
"Demolition Derby", "Demolition Derby",
@ -139,7 +139,6 @@ static const char *gametype_items[] = {
"Team Deathmatch", "Team Deathmatch",
"Team Racing", "Team Racing",
"Team Racing Deathmatch", "Team Racing Deathmatch",
// END
"Capture the Flag", "Capture the Flag",
"Domination", "Domination",
0 0
@ -186,6 +185,12 @@ char *UI_GetStatKey(int num){
case MS_TRACKLENGTHS: case MS_TRACKLENGTHS:
return "tracklengths"; return "tracklengths";
case MS_BOTSUPPORT:
return "bots";
case MS_NUMTEAMS:
return "teams";
default: default:
return ""; return "";
@ -195,7 +200,7 @@ char *UI_GetStatKey(int num){
char *UI_GetStatName(int num){ char *UI_GetStatName(int num){
switch(num){ switch(num){
case MS_NUMSTARTS: case MS_NUMSTARTS:
return "Number of start positions:"; return "Start positions:";
case MS_LAPS: case MS_LAPS:
return "Default number of laps:"; return "Default number of laps:";
@ -210,16 +215,22 @@ char *UI_GetStatName(int num){
return "Number of observer spots:"; return "Number of observer spots:";
case MS_NUMWEAPONS: case MS_NUMWEAPONS:
return "Number of weapons:"; return "Weapons:";
case MS_NUMPOWERUPS: case MS_NUMPOWERUPS:
return "Number of powerups:"; return "Powerups:";
case MS_REVERSABLE: case MS_REVERSABLE:
return "Reversable option available:"; return "Reversable:";
case MS_TRACKLENGTHS: case MS_TRACKLENGTHS:
return "Track lengths available:"; return "Track lengths available:";
case MS_BOTSUPPORT:
return "Bot Support:";
case MS_NUMTEAMS:
return "Teams:";
default: default:
return ""; return "";
@ -255,6 +266,12 @@ char *UI_GetDefaultStatValue( int num ){
case MS_TRACKLENGTHS: case MS_TRACKLENGTHS:
return "0 1 2"; return "0 1 2";
case MS_BOTSUPPORT:
return "Unknown";
case MS_NUMTEAMS:
return "Unknown";
default: default:
return ""; return "";

View file

@ -67,7 +67,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define BASETA "missionpack" #define BASETA "missionpack"
#ifndef PRODUCT_VERSION #ifndef PRODUCT_VERSION
#define PRODUCT_VERSION "v0.3c_r420" #define PRODUCT_VERSION "v0.3c_r421"
#endif #endif

View file

@ -886,21 +886,17 @@ q3rallycode
engine\cross-make-mingw64.sh engine\cross-make-mingw64.sh
[Open project files] [Open project files]
0=engine\code\qcommon\q_shared.h 0=engine\code\qcommon\q_shared.h
1=engine\code\q3_ui\ui_playersettings.c 1=engine\code\q3_ui\ui_rally_startserver.c
2=engine\code\cgame\cg_draw.c 2=engine\code\q3_ui\ui_local.h
3=engine\code\cgame\cg_local.h
[Selected Project Files] [Selected Project Files]
Main= Main=
Selected=engine\code\qcommon\q_shared.h Selected=engine\code\qcommon\q_shared.h
[engine\code\qcommon\q_shared.h] [engine\code\qcommon\q_shared.h]
TopLine=51 TopLine=51
Caret=36,70 Caret=36,70
[engine\code\q3_ui\ui_playersettings.c] [engine\code\q3_ui\ui_rally_startserver.c]
TopLine=303 TopLine=353
Caret=1,311 Caret=1,291
[engine\code\cgame\cg_draw.c] [engine\code\q3_ui\ui_local.h]
TopLine=547 TopLine=335
Caret=2,570 Caret=17,357
[engine\code\cgame\cg_local.h]
TopLine=1352
Caret=1,1368