diff -r aa77f2a6b4f1 -r 8208946331ba hedgewars/CCHandlers.inc --- 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;