hedgewars/CCHandlers.inc
changeset 2171 8208946331ba
parent 2162 2bce91404d49
child 2205 e8573a7cab06
--- a/hedgewars/CCHandlers.inc	Thu Jun 18 17:35:34 2009 +0000
+++ b/hedgewars/CCHandlers.inc	Thu Jun 18 17:48:06 2009 +0000
@@ -473,7 +473,11 @@
               TargetPoint.Y:= putY
               end else
               begin
-              SDL_GetMouseState(@TargetPoint.X, @TargetPoint.Y);
+			  {$IFDEF SDL13}
+              SDL_GetMouseState(0, @TargetPoint.X, @TargetPoint.Y);
+			  {$ELSE}
+			  SDL_GetMouseState(@TargetPoint.X, @TargetPoint.Y);
+			  {$ENDIF}
               dec(TargetPoint.X, WorldDx);
               dec(TargetPoint.Y, WorldDy)
               end;