From c8e3c5994597be9642df5e6a43a9526b29e20052 Mon Sep 17 00:00:00 2001 From: Andrei Drexler Date: Sun, 26 May 2002 14:37:21 +0000 Subject: [PATCH] Map list is now sorted alphabetically --- reaction/ta_ui/ta_ui.plg | 14 +++++++------- reaction/ta_ui/ui_gameinfo.c | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/reaction/ta_ui/ta_ui.plg b/reaction/ta_ui/ta_ui.plg index a9f49748..1a00c402 100644 --- a/reaction/ta_ui/ta_ui.plg +++ b/reaction/ta_ui/ta_ui.plg @@ -6,15 +6,15 @@ --------------------Configuration: ui - Win32 Release TA--------------------

Command Lines

-Creating temporary file "D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP314.tmp" with contents +Creating temporary file "D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP390.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_main.c" +"C:\Games\Quake3\rq3source\reaction\ta_ui\ui_gameinfo.c" ] -Creating command line "cl.exe @D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP314.tmp" -Creating temporary file "D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP315.tmp" with contents +Creating command line "cl.exe @D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP390.tmp" +Creating temporary file "D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP391.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:"uix86.dll" /implib:"Release_TA/uix86.lib" +/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 @@ -26,10 +26,10 @@ Creating temporary file "D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP315.tmp" with conte .\Release_TA\ui_syscalls.obj .\Release_TA\ui_util.obj ] -Creating command line "link.exe @D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP315.tmp" +Creating command line "link.exe @D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP391.tmp"

Output Window

Compiling... -ui_main.c +ui_gameinfo.c Linking... Creating library Release_TA/uix86.lib and object Release_TA/uix86.exp diff --git a/reaction/ta_ui/ui_gameinfo.c b/reaction/ta_ui/ui_gameinfo.c index 702dfce4..da808e59 100644 --- a/reaction/ta_ui/ui_gameinfo.c +++ b/reaction/ta_ui/ui_gameinfo.c @@ -5,6 +5,9 @@ //----------------------------------------------------------------------------- // // $Log$ +// Revision 1.6 2002/05/26 14:37:21 makro +// Map list is now sorted alphabetically +// // Revision 1.5 2002/03/31 13:23:26 makro // Cleaned things up a little // @@ -249,6 +252,17 @@ void UI_LoadArenas( void ) { break; } } + + //Makro - sorting list + for (i = 0; i < uiInfo.mapCount - 1; i++) { + for (n = i+1; n < uiInfo.mapCount; n++) { + if (Q_stricmp(uiInfo.mapList[i].mapName, uiInfo.mapList[n].mapName) > 0) { + mapInfo temp = uiInfo.mapList[i]; + uiInfo.mapList[i] = uiInfo.mapList[n]; + uiInfo.mapList[n] = temp; + } + } + } }