hedgewars/CCHandlers.inc
changeset 2205 e8573a7cab06
parent 2171 8208946331ba
child 2240 7ce9e6b7be3b
equal deleted inserted replaced
2204:526f8165acce 2205:e8573a7cab06
   476 			  {$IFDEF SDL13}
   476 			  {$IFDEF SDL13}
   477               SDL_GetMouseState(0, @TargetPoint.X, @TargetPoint.Y);
   477               SDL_GetMouseState(0, @TargetPoint.X, @TargetPoint.Y);
   478 			  {$ELSE}
   478 			  {$ELSE}
   479 			  SDL_GetMouseState(@TargetPoint.X, @TargetPoint.Y);
   479 			  SDL_GetMouseState(@TargetPoint.X, @TargetPoint.Y);
   480 			  {$ENDIF}
   480 			  {$ENDIF}
       
   481 			  dec(TargetPoint.X, cScreenWidth div 2);
   481               dec(TargetPoint.X, WorldDx);
   482               dec(TargetPoint.X, WorldDx);
   482               dec(TargetPoint.Y, WorldDy)
   483               dec(TargetPoint.Y, WorldDy)
   483               end;
   484               end;
   484            SendIPCXY('p', TargetPoint.X, TargetPoint.Y);
   485            SendIPCXY('p', TargetPoint.X, TargetPoint.Y);
   485            end;
   486            end;