hedgewars/uWorld.pas
changeset 4792 68f9b331014a
parent 4748 ce9b48de1f52
child 4808 7c3e5b52344a
equal deleted inserted replaced
4791:458d9854c679 4792:68f9b331014a
   649 
   649 
   650     DrawGears;
   650     DrawGears;
   651 
   651 
   652     DrawVisualGears(2);
   652     DrawVisualGears(2);
   653 
   653 
   654     DrawWater(cWaterOpacity, 0);
   654     if SuddenDeathDmg then
       
   655         DrawWater(cSDWaterOpacity, 0)
       
   656     else
       
   657         DrawWater(cWaterOpacity, 0);
   655 
   658 
   656     // Waves
   659     // Waves
   657     DrawWaves( 1, 25 - WorldDx div 9, - cWaveHeight, 12);
   660     DrawWaves( 1, 25 - WorldDx div 9, - cWaveHeight, 12);
   658 
   661 
   659     if (cReducedQuality and rq2DWater) = 0 then
   662     if (cReducedQuality and rq2DWater) = 0 then
   660     begin
   663     begin
   661         //DrawWater(cWaterOpacity, - offsetY div 40);
   664         //DrawWater(cWaterOpacity, - offsetY div 40);
   662         DrawWaves(-1, 50 + WorldDx div 6, - cWaveHeight - offsetY div 40, 8);
   665         DrawWaves(-1, 50 + WorldDx div 6, - cWaveHeight - offsetY div 40, 8);
   663         DrawWater(cWaterOpacity, - offsetY div 20);
   666         if SuddenDeathDmg then
       
   667             DrawWater(cSDWaterOpacity, - offsetY div 20)
       
   668         else
       
   669             DrawWater(cWaterOpacity, - offsetY div 20);
   664         DrawWaves( 1, 75 - WorldDx div 4, - cWaveHeight - offsetY div 20, 2);
   670         DrawWaves( 1, 75 - WorldDx div 4, - cWaveHeight - offsetY div 20, 2);
   665         DrawWater(cWaterOpacity, - offsetY div 10);
   671         if SuddenDeathDmg then
       
   672             DrawWater(cSDWaterOpacity, - offsetY div 10)
       
   673         else
       
   674             DrawWater(cWaterOpacity, - offsetY div 10);
   666         DrawWaves( -1, 25 + WorldDx div 3, - cWaveHeight - offsetY div 10, 0);
   675         DrawWaves( -1, 25 + WorldDx div 3, - cWaveHeight - offsetY div 10, 0);
   667     end
   676     end
   668     else
   677     else
   669         DrawWaves(-1, 50, - (cWaveHeight shr 1), 0);
   678         DrawWaves(-1, 50, - (cWaveHeight shr 1), 0);
   670 
   679