hedgewars/uStore.pas
branchhedgeroid
changeset 5341 479b4108789a
parent 5286 22c1f4833a86
parent 5285 af4dc03dd60d
child 5530 25d4118056e1
equal deleted inserted replaced
5339:bc8560452143 5341:479b4108789a
   281     with SpritesData[ii] do
   281     with SpritesData[ii] do
   282         // FIXME - add a sprite attribute to match on rq flags?
   282         // FIXME - add a sprite attribute to match on rq flags?
   283         if (((cReducedQuality and (rqNoBackground or rqLowRes)) = 0) or   // why rqLowRes?
   283         if (((cReducedQuality and (rqNoBackground or rqLowRes)) = 0) or   // why rqLowRes?
   284                 (not (ii in [sprSky, sprSkyL, sprSkyR, sprHorizont, sprHorizontL, sprHorizontR]))) and
   284                 (not (ii in [sprSky, sprSkyL, sprSkyR, sprHorizont, sprHorizontL, sprHorizontR]))) and
   285            (((cReducedQuality and rqPlainSplash) = 0) or ((not (ii in [sprSplash, sprDroplet, sprSDSplash, sprSDDroplet])))) and
   285            (((cReducedQuality and rqPlainSplash) = 0) or ((not (ii in [sprSplash, sprDroplet, sprSDSplash, sprSDDroplet])))) and
   286            (((cReducedQuality and rqKillFlakes) = 0) or (Theme = 'Snow') or (Theme = 'Christmas') or ((not (ii in [sprFlake, sprSDFlake])))) then
   286            (((cReducedQuality and rqKillFlakes) = 0) or (Theme = 'Snow') or (Theme = 'Christmas') or ((not (ii in [sprFlake, sprSDFlake])))) and
       
   287            ((cCloudsNumber > 0) or (ii <> sprCloud)) and
       
   288            ((vobCount > 0) or (ii <> sprFlake)) then
   287         begin
   289         begin
   288             if AltPath = ptNone then
   290             if AltPath = ptNone then
   289                 if ii in [sprHorizontL, sprHorizontR, sprSkyL, sprSkyR, sprChunk] then // FIXME: hack
   291                 if ii in [sprHorizont, sprHorizontL, sprHorizontR, sprSky, sprSkyL, sprSkyR, sprChunk] then // FIXME: hack
   290                     begin
   292                     begin
   291                     tmpsurf:= LoadImage(UserPathz[Path] + '/' + FileName, ifAlpha or ifTransparent);
   293                     tmpsurf:= LoadImage(UserPathz[Path] + '/' + FileName, ifAlpha or ifTransparent);
   292                     if tmpsurf = nil then tmpsurf:= LoadImage(Pathz[Path] + '/' + FileName, ifAlpha or ifTransparent)
   294                     if tmpsurf = nil then tmpsurf:= LoadImage(Pathz[Path] + '/' + FileName, ifAlpha or ifTransparent)
   293                     end
   295                     end
   294                 else
   296                 else