Prevent pause/synchronizing/AFK mode text being rendered at the same time
authorWuzzy <Wuzzy2@mail.ru>
Sat, 01 Sep 2018 12:43:19 +0200
changeset 13732 b83154cc8fad
parent 13731 2fa83c3e9f09
child 13733 ae22928f2b01
Prevent pause/synchronizing/AFK mode text being rendered at the same time
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