# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1535798599 -7200
# Node ID b83154cc8fadcb328ecc526f539602b977bfc5cf
# Parent  2fa83c3e9f093d9efb1d310afca9511ccd72c549
Prevent pause/synchronizing/AFK mode text being rendered at the same time

diff -r 2fa83c3e9f09 -r b83154cc8fad hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Sat Sep 01 01:18:07 2018 +0200
+++ b/hedgewars/uWorld.pas	Sat Sep 01 12:43:19 2018 +0200
@@ -1630,11 +1630,11 @@
 
 // various captions
 if fastUntilLag then
-    DrawTextureCentered(0, (cScreenHeight shr 1), SyncTexture);
-if isPaused then
+    DrawTextureCentered(0, (cScreenHeight shr 1), SyncTexture)
+else if isAFK then
+    DrawTextureCentered(0, (cScreenHeight shr 1), AFKTexture)
+else if isPaused then
     DrawTextureCentered(0, (cScreenHeight shr 1), PauseTexture);
-if isAFK then
-    DrawTextureCentered(0, (cScreenHeight shr 1), AFKTexture);
 if not isFirstFrame and (missionTimer <> 0) or isShowMission or isPaused or fastUntilLag or (GameState = gsConfirm) then
     begin
     if (ReadyTimeLeft = 0) and (missionTimer > 0) then