hedgewars/CCHandlers.inc
changeset 2171 8208946331ba
parent 2162 2bce91404d49
child 2205 e8573a7cab06
equal deleted inserted replaced
2170:aa77f2a6b4f1 2171:8208946331ba
   471               begin
   471               begin
   472               TargetPoint.X:= putX;
   472               TargetPoint.X:= putX;
   473               TargetPoint.Y:= putY
   473               TargetPoint.Y:= putY
   474               end else
   474               end else
   475               begin
   475               begin
   476               SDL_GetMouseState(@TargetPoint.X, @TargetPoint.Y);
   476 			  {$IFDEF SDL13}
       
   477               SDL_GetMouseState(0, @TargetPoint.X, @TargetPoint.Y);
       
   478 			  {$ELSE}
       
   479 			  SDL_GetMouseState(@TargetPoint.X, @TargetPoint.Y);
       
   480 			  {$ENDIF}
   477               dec(TargetPoint.X, WorldDx);
   481               dec(TargetPoint.X, WorldDx);
   478               dec(TargetPoint.Y, WorldDy)
   482               dec(TargetPoint.Y, WorldDy)
   479               end;
   483               end;
   480            SendIPCXY('p', TargetPoint.X, TargetPoint.Y);
   484            SendIPCXY('p', TargetPoint.X, TargetPoint.Y);
   481            end;
   485            end;