summaryrefslogtreecommitdiff
path: root/source/ui_multiplayer.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-08-16 10:19:42 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-08-16 10:19:42 +0000
commit1526e22e4ff29153e9c127081e8ea8d9e2f33b8c (patch)
treeb361766433d4a7b4a111865afd52803e2bbf7754 /source/ui_multiplayer.c
parente826e5f176f21cd18b3bbc22887a266835ada57c (diff)
Split some monolithic include files into smaller ones.
Use single BSP models cache for refresh and collision subsystems. Refresh libraries may not longer be dynamically loaded. Made gi.TagMalloc use separate tag namespace to avoid conflicts with engine reserverd tags. Fixed listing order of MVD channels in chooser menu. A lot of misc changes... MSVC build is definitely broken now.
Diffstat (limited to 'source/ui_multiplayer.c')
-rw-r--r--source/ui_multiplayer.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/source/ui_multiplayer.c b/source/ui_multiplayer.c
index a059b41..e33d1db 100644
--- a/source/ui_multiplayer.c
+++ b/source/ui_multiplayer.c
@@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "ui_local.h"
+#include "files.h"
/*
=============================================================================
@@ -92,11 +93,11 @@ static void ClearSlot( serverSlot_t *slot ) {
int i;
for( i = 0; i < slot->numRules; i++ ) {
- com.Free( slot->rules[i] );
+ Z_Free( slot->rules[i] );
slot->rules[i] = NULL;
}
for( i = 0; i < slot->numPlayers; i++ ) {
- com.Free( slot->players[i] );
+ Z_Free( slot->players[i] );
slot->players[i] = NULL;
}
slot->numRules = slot->numPlayers = 0;
@@ -148,7 +149,7 @@ void UI_AddToServerList( const serverStatus_t *status ) {
map = "???";
} else {
Com_sprintf( value, sizeof( value ), "maps/%s.bsp", map );
- if( fs.LoadFile( value, NULL ) == INVALID_LENGTH ) {
+ if( FS_LoadFile( value, NULL ) == INVALID_LENGTH ) {
Q_concat( value, sizeof( value ), S_COLOR_RED, map, NULL );
map = value;
}
@@ -161,7 +162,7 @@ void UI_AddToServerList( const serverStatus_t *status ) {
status->numPlayers, j );
if( m_join.names[i] ) {
- com.Free( m_join.names[i] );
+ Z_Free( m_join.names[i] );
}
m_join.names[i] = UI_FormatColumns( 0, host, map, key, NULL );
@@ -193,7 +194,7 @@ static void PingSelected( void ) {
serverSlot_t *s = &m_join.servers[m_join.list.curvalue];
if( m_join.names[m_join.list.curvalue] ) {
- com.Free( m_join.names[m_join.list.curvalue] );
+ Z_Free( m_join.names[m_join.list.curvalue] );
}
m_join.names[m_join.list.curvalue] = UI_FormatColumns( 0,
s->address, "???", "?/?", NULL );
@@ -220,7 +221,7 @@ static void AddUnlistedServers( void ) {
CL_SendStatusRequest( NULL, 0 );
for( i = 0; i < MAX_STATUS_SERVERS; i++ ) {
- var = cvar.Find( va( "adr%i", i ) );
+ var = Cvar_FindVar( va( "adr%i", i ) );
if( !var ) {
break;
}
@@ -266,7 +267,7 @@ static void FreeListedServers( void ) {
for( i = 0; i < m_join.list.numItems; i++ ) {
if( m_join.names[i] ) {
- com.Free( m_join.names[i] );
+ Z_Free( m_join.names[i] );
m_join.names[i] = NULL;
}
}