hedgewars/uWorld.pas
changeset 9670 1954f692e8c6
parent 9666 8dcb25112d96
child 9686 352393fc75be
child 9693 9e31e3bb4476
equal deleted inserted replaced
9669:9fa0f67ff628 9670:1954f692e8c6
   977     // Sky
   977     // Sky
   978     glClear(GL_COLOR_BUFFER_BIT);
   978     glClear(GL_COLOR_BUFFER_BIT);
   979     //glPushMatrix;
   979     //glPushMatrix;
   980     //glScalef(1.0, 1.0, 1.0);
   980     //glScalef(1.0, 1.0, 1.0);
   981 
   981 
   982     if (not isPaused) and (GameType <> gmtRecord) then
   982     if (not isPaused) and (not isAFK) and (GameType <> gmtRecord) then
   983         MoveCamera;
   983         MoveCamera;
   984 
   984 
   985     if cStereoMode = smNone then
   985     if cStereoMode = smNone then
   986         begin
   986         begin
   987         glClear(GL_COLOR_BUFFER_BIT);
   987         glClear(GL_COLOR_BUFFER_BIT);
  1553 // various captions
  1553 // various captions
  1554 if fastUntilLag then
  1554 if fastUntilLag then
  1555     DrawTextureCentered(0, (cScreenHeight shr 1), SyncTexture);
  1555     DrawTextureCentered(0, (cScreenHeight shr 1), SyncTexture);
  1556 if isPaused then
  1556 if isPaused then
  1557     DrawTextureCentered(0, (cScreenHeight shr 1), PauseTexture);
  1557     DrawTextureCentered(0, (cScreenHeight shr 1), PauseTexture);
       
  1558 if isAFK then
       
  1559     DrawTextureCentered(0, (cScreenHeight shr 1), AFKTexture);
  1558 if not isFirstFrame and (missionTimer <> 0) or isPaused or fastUntilLag or (GameState = gsConfirm) then
  1560 if not isFirstFrame and (missionTimer <> 0) or isPaused or fastUntilLag or (GameState = gsConfirm) then
  1559     begin
  1561     begin
  1560     if (ReadyTimeLeft = 0) and (missionTimer > 0) then
  1562     if (ReadyTimeLeft = 0) and (missionTimer > 0) then
  1561         dec(missionTimer, Lag);
  1563         dec(missionTimer, Lag);
  1562     if missionTimer < 0 then
  1564     if missionTimer < 0 then