summaryrefslogtreecommitdiff
path: root/source/ui_loading.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-01-06 18:34:29 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-01-06 18:34:29 +0000
commit79d1509407240c0d549843009dba4b37b64c2a9b (patch)
tree1b36d35d3add67a082262f7355778dacc371a171 /source/ui_loading.c
parent0746f5d59cbf076310feca52581833a7b45f9663 (diff)
Fixed invalid client ID being displayed by `status' command on GTV servers.
Fixed stupid Sys_Sleep bug on Unix systems. Draw `Loading anticheat...' string in connection screen. Added Sys_GetAntiCheatAPI stub into sys_unix.c for testing purposes.
Diffstat (limited to 'source/ui_loading.c')
-rw-r--r--source/ui_loading.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source/ui_loading.c b/source/ui_loading.c
index 1429c69..8b27c9d 100644
--- a/source/ui_loading.c
+++ b/source/ui_loading.c
@@ -28,14 +28,13 @@ CONNECTION / LOADING SCREEN
=============================================================================
*/
-static clientStatus_t loadingStatus;
-
/*
==============
UI_DrawLoading
==============
*/
void UI_DrawLoading( int realtime ) {
+ clientStatus_t loadingStatus;
char buffer[MAX_STRING_CHARS];
char *s;
int x, y;
@@ -81,12 +80,15 @@ void UI_DrawLoading( int realtime ) {
s = buffer;
break;
case ca_connecting:
- Com_sprintf( buffer, sizeof( buffer ), "Connecting... %i", loadingStatus.connectCount );
- s = buffer;
+ if( loadingStatus.connectCount == -1 ) {
+ s = "Loading anticheat...";
+ } else {
+ Com_sprintf( buffer, sizeof( buffer ), "Connecting... %i", loadingStatus.connectCount );
+ s = buffer;
+ }
break;
case ca_connected:
s = "Receiving server data...";
- UI_DrawString( x, y, NULL, UI_CENTER|UI_DROPSHADOW, s );
break;
case ca_loading:
Com_sprintf( buffer, sizeof( buffer ), "Loading... %s", loadingStatus.loadingString );