From 6fd8535eefc7e324849016d4fbb06e6488778c8b Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Thu, 10 Jan 2008 22:09:39 +0000 Subject: Always send nonzero areabytes to non-q2pro clients (fixes hall of mirrors in MVD Waiting Room). Made `deathmatch' and `maxclients' default to `1' and `8' respectively. Made autocompletion work for some console variables too. Made `set' command accept multiple args with spaces, as well as Cvar_Command. Fixed potential crash on entities with EF_BFG bit and out of range skinnum. Levelshots work again now. Made `pingservers' command ping all 64 possible servers. Delete scrap texture on refresh shutdown. Added `leave' command for GTV, switches client to Waiting Room. --- source/ui_loading.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'source/ui_loading.c') diff --git a/source/ui_loading.c b/source/ui_loading.c index 8b27c9d..28a0fd6 100644 --- a/source/ui_loading.c +++ b/source/ui_loading.c @@ -47,19 +47,18 @@ void UI_DrawLoading( int realtime ) { ref.SetScale( &uis.scale ); } -#if 0 if( loadingStatus.mapname[0] ) { - qhandle_t hPic; + qhandle_t h; - Com_sprintf( buffer, sizeof( buffer ), "/levelshots/%s.jpg", loadingStatus.mapname ); - if( ( hPic = ref.RegisterPic( buffer ) ) != 0 ) { - ref.DrawStretchPic( 0, 0, uis.width, uis.height, hPic ); + Com_sprintf( buffer, MAX_QPATH, "*levelshots/%s.jpg", loadingStatus.mapname ); + if( ( h = ref.RegisterPic( buffer ) ) != 0 ) { + ref.DrawStretchPic( 0, 0, uis.width, uis.height, h ); } else { ref.DrawFill( 0, 0, uis.width, uis.height, 0x00 ); } - } else -#endif + } else { ref.DrawFill( 0, 0, uis.width, uis.height, 0x00 ); + } x = uis.width / 2; y = 8; -- cgit v1.2.3