mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-03-13 22:22:13 +00:00
Bot list is now sorted alphabetically
This commit is contained in:
parent
d0c82c352d
commit
0f739e012f
3 changed files with 55 additions and 3 deletions
|
@ -6,6 +6,34 @@
|
|||
--------------------Configuration: ui - Win32 Release TA--------------------
|
||||
</h3>
|
||||
<h3>Command Lines</h3>
|
||||
Creating temporary file "D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP95D.tmp" with contents
|
||||
[
|
||||
/nologo /G6 /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "UI_EXPORTS" /Fp"Release_TA/ta_ui.pch" /YX /Fo"Release_TA/" /Fd"Release_TA/" /FD /c
|
||||
"C:\Games\Quake3\rq3source\reaction\ta_ui\ui_gameinfo.c"
|
||||
"C:\Games\Quake3\rq3source\reaction\ta_ui\ui_main.c"
|
||||
]
|
||||
Creating command line "cl.exe @D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP95D.tmp"
|
||||
Creating temporary file "D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP95E.tmp" with contents
|
||||
[
|
||||
/nologo /base:"0x40000000" /dll /incremental:no /pdb:"Release_TA/uix86.pdb" /map:"Release_TA/uix86.map" /machine:I386 /def:".\ui.def" /out:"../Release/uix86.dll" /implib:"Release_TA/uix86.lib"
|
||||
.\Release_TA\bg_misc.obj
|
||||
.\Release_TA\q_math.obj
|
||||
.\Release_TA\q_shared.obj
|
||||
.\Release_TA\ui_atoms.obj
|
||||
.\Release_TA\ui_gameinfo.obj
|
||||
.\Release_TA\ui_main.obj
|
||||
.\Release_TA\ui_players.obj
|
||||
.\Release_TA\ui_shared.obj
|
||||
.\Release_TA\ui_syscalls.obj
|
||||
.\Release_TA\ui_util.obj
|
||||
]
|
||||
Creating command line "link.exe @D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP95E.tmp"
|
||||
<h3>Output Window</h3>
|
||||
Compiling...
|
||||
ui_gameinfo.c
|
||||
ui_main.c
|
||||
Linking...
|
||||
Creating library Release_TA/uix86.lib and object Release_TA/uix86.exp
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.7 2002/06/13 15:50:24 makro
|
||||
// Bot list is now sorted alphabetically
|
||||
//
|
||||
// Revision 1.6 2002/05/26 14:37:21 makro
|
||||
// Map list is now sorted alphabetically
|
||||
//
|
||||
|
@ -306,7 +309,7 @@ void UI_LoadBots( void ) {
|
|||
int numdirs;
|
||||
char filename[128];
|
||||
char dirlist[1024];
|
||||
char* dirptr;
|
||||
char *dirptr;
|
||||
int i;
|
||||
int dirlen;
|
||||
|
||||
|
@ -329,6 +332,22 @@ void UI_LoadBots( void ) {
|
|||
strcat(filename, dirptr);
|
||||
UI_LoadBotsFromFile(filename);
|
||||
}
|
||||
|
||||
//Makro - sort bot list
|
||||
for (i = 0; i<ui_numBots-1; i++) {
|
||||
for (dirlen = i+1; dirlen < ui_numBots; dirlen++) {
|
||||
char *n1 = Info_ValueForKey(ui_botInfos[i], "name");
|
||||
char *n2 = Info_ValueForKey(ui_botInfos[dirlen], "name");
|
||||
if (!n1) n1 = "Abbey";
|
||||
if (!n2) n2 = "Abbey";
|
||||
if (Q_stricmp(n1, n2) > 0) {
|
||||
dirptr = ui_botInfos[i];
|
||||
ui_botInfos[i] = ui_botInfos[dirlen];
|
||||
ui_botInfos[dirlen] = dirptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
trap_Print( va( "%i bots parsed\n", ui_numBots ) );
|
||||
}
|
||||
|
||||
|
@ -376,5 +395,6 @@ char *UI_GetBotNameByNumber( int num ) {
|
|||
if (info) {
|
||||
return Info_ValueForKey( info, "name" );
|
||||
}
|
||||
return "Sarge";
|
||||
//Makro - changed from Sarge
|
||||
return "Raver";
|
||||
}
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.32 2002/06/13 15:50:24 makro
|
||||
// Bot list is now sorted alphabetically
|
||||
//
|
||||
// Revision 1.31 2002/06/12 11:15:31 makro
|
||||
// Support for changing the SSG crosshair. Some other stuff
|
||||
//
|
||||
|
@ -6355,7 +6358,8 @@ static cvarTable_t cvarTable[] = {
|
|||
{ &ui_captureLimit, "ui_captureLimit", "5", 0},
|
||||
{ &ui_smallFont, "ui_smallFont", "0.25", CVAR_ARCHIVE},
|
||||
{ &ui_bigFont, "ui_bigFont", "0.4", CVAR_ARCHIVE},
|
||||
{ &ui_findPlayer, "ui_findPlayer", "Sarge", CVAR_ARCHIVE},
|
||||
//Makro - changed from Sarge
|
||||
{ &ui_findPlayer, "ui_findPlayer", "Abbey", CVAR_ARCHIVE},
|
||||
//Makro - adding CVAR_ROM
|
||||
{ &ui_Q3Model, "ui_q3model", "1", CVAR_ARCHIVE | CVAR_ROM},
|
||||
{ &ui_hudFiles, "cg_hudFiles", "ui/hud.txt", CVAR_ARCHIVE},
|
||||
|
|
Loading…
Reference in a new issue