diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-01-10 22:09:39 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-01-10 22:09:39 +0000 |
commit | 6fd8535eefc7e324849016d4fbb06e6488778c8b (patch) | |
tree | 682cf66b3ad1c47d1b22cd418a621f00bf7ba518 /source/ui_loading.c | |
parent | fef9f789590b48cd5a6438ebfbefe84ce4b85115 (diff) |
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.
Diffstat (limited to 'source/ui_loading.c')
-rw-r--r-- | source/ui_loading.c | 13 |
1 files changed, 6 insertions, 7 deletions
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; |