unbreak build
authornemo
Tue, 10 Nov 2009 16:43:15 +0000
changeset 2612 60c7691c348f
parent 2611 07b0cc91256c
child 2613 e873f4bfed09
unbreak build
hedgewars/uStore.pas
--- a/hedgewars/uStore.pas	Tue Nov 10 04:22:55 2009 +0000
+++ b/hedgewars/uStore.pas	Tue Nov 10 16:43:15 2009 +0000
@@ -263,6 +263,7 @@
     ai: TAmmoType;
     tmpsurf: PSDL_Surface;
     i: LongInt;
+(* this is a workaround for http://bugzilla.libsdl.org/show_bug.cgi?id=868 remove this when it's fixed in upstream *)
 {$IFDEF DARWIN}
 tmpP: PLongWordArray;
 tmpA, tmpR, tmpG, tmpB: LongWord;
@@ -350,8 +351,8 @@
 					Texture:= Surface2Tex(tmpsurf, false);
 					if (ii = sprWater) and not cReducedQuality then // HACK: We should include some sprite attribute to define the texture wrap directions
 						begin
+					(*	REMOVE ME WHEN BUG ABOVE IS FIXED
 						tmpP := tmpsurf^.pixels; 
-					(*	REMOVE ME WHEN BUG ABOVE IS FIXED
 						for i:= 0 to (tmpsurf^.pitch shr 2) * tmpsurf^.h - 1 do
 						begin
 							tmpA:= tmpP^[i] shr 24 and $FF;