hedgewars/uWorld.pas
changeset 1779 9d88af62a3bb
parent 1760 55a1edd97911
child 1805 dd9fb4b13fd8
equal deleted inserted replaced
1778:1d9395d1e104 1779:9d88af62a3bb
    38 	Frames: Longword = 0;
    38 	Frames: Longword = 0;
    39 	WaterColor, DeepWaterColor: TSDL_Color;
    39 	WaterColor, DeepWaterColor: TSDL_Color;
    40 
    40 
    41 implementation
    41 implementation
    42 uses uStore, uMisc, uTeams, uIO, uConsole, uKeys, uLocale, uSound, GL,
    42 uses uStore, uMisc, uTeams, uIO, uConsole, uKeys, uLocale, uSound, GL,
    43      uAmmos, uVisualGears, uChat;
    43      uAmmos, uVisualGears, uChat, uLand;
       
    44      
    44 const FPS: Longword = 0;
    45 const FPS: Longword = 0;
    45       CountTicks: Longword = 0;
    46       CountTicks: Longword = 0;
    46       SoundTimerTicks: Longword = 0;
    47       SoundTimerTicks: Longword = 0;
    47       prevPoint: TPoint = (X: 0; Y: 0);
    48       prevPoint: TPoint = (X: 0; Y: 0);
    48 
    49 
   187 glClear(GL_COLOR_BUFFER_BIT);
   188 glClear(GL_COLOR_BUFFER_BIT);
   188 glEnable(GL_BLEND);
   189 glEnable(GL_BLEND);
   189 glEnable(GL_TEXTURE_2D);
   190 glEnable(GL_TEXTURE_2D);
   190 //glPushMatrix;
   191 //glPushMatrix;
   191 //glScalef(1.0, 1.0, 1.0);
   192 //glScalef(1.0, 1.0, 1.0);
       
   193 
       
   194 RealLandTexUpdate;
   192 
   195 
   193 if not isPaused then MoveCamera;
   196 if not isPaused then MoveCamera;
   194 
   197 
   195 // background
   198 // background
   196 DrawRepeated(sprSky, WorldDx * 3 div 8);
   199 DrawRepeated(sprSky, WorldDx * 3 div 8);