Ignore:
Timestamp:
Sep 28, 2014, 5:42:51 PM (10 years ago)
Author:
chronos
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r62 r69  
    343343procedure TFormMain.PaintBox1MouseUp(Sender: TObject; Button: TMouseButton;
    344344  Shift: TShiftState; X, Y: Integer);
    345 begin
    346   if (Abs(StartMousePoint.X - X) < 5) and (Abs(StartMousePoint.Y - Y) < 5) then begin
     345const
     346  MouseMinDiff = 10;
     347begin
     348  if (Abs(StartMousePoint.X - X) < MouseMinDiff) and (Abs(StartMousePoint.Y - Y) < MouseMinDiff) then begin
    347349    if Core.Game.Running and (Core.Game.CurrentPlayer.Mode = pmHuman) then begin
    348350      Core.Game.CurrentPlayer.View.SelectCell(Point(X, Y), Core.Game.CurrentPlayer);
Note: See TracChangeset for help on using the changeset viewer.