hedgewars/uStore.pas
changeset 2452 a6edc408a376
parent 2447 08d623a494e6
child 2557 3c0b8b6bee20
child 2565 54296af65fe9
equal deleted inserted replaced
2451:5affd0840927 2452:a6edc408a376
   297 				begin
   297 				begin
   298 				if imageWidth = 0 then imageWidth := tmpsurf^.w;
   298 				if imageWidth = 0 then imageWidth := tmpsurf^.w;
   299 				if imageHeight = 0 then imageHeight := tmpsurf^.h;
   299 				if imageHeight = 0 then imageHeight := tmpsurf^.h;
   300 				if Width = 0 then Width:= tmpsurf^.w;
   300 				if Width = 0 then Width:= tmpsurf^.w;
   301 				if Height = 0 then Height:= tmpsurf^.h;
   301 				if Height = 0 then Height:= tmpsurf^.h;
   302 				if (ii in [sprSky, sprSkyL, sprSkyR, sprHorizont, sprHorizontL, sprHorizontR, sprFlake]) then
   302 				if (ii in [sprSky, sprSkyL, sprSkyR, sprHorizont, sprHorizontL, sprHorizontR]) then
   303 					Texture:= Surface2Tex(tmpsurf, true)
   303 					Texture:= Surface2Tex(tmpsurf, true)
   304 				else
   304 				else
   305 					begin
   305 					begin
   306 					Texture:= Surface2Tex(tmpsurf, false);
   306 					Texture:= Surface2Tex(tmpsurf, false);
   307 					if (ii = sprWater) and not cReducedQuality then // HACK: We should include some sprite attribute to define the texture wrap directions
   307 					if (ii = sprWater) and not cReducedQuality then // HACK: We should include some sprite attribute to define the texture wrap directions