equal
deleted
inserted
replaced
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; |