From 79d1509407240c0d549843009dba4b37b64c2a9b Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Sun, 6 Jan 2008 18:34:29 +0000 Subject: 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. --- source/ui_loading.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'source/ui_loading.c') 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 ); -- cgit v1.2.3