Changeset 68 for trunk/Forms


Ignore:
Timestamp:
Jan 26, 2020, 10:57:41 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Drawing board in AI mode.
  • Fixed: Undo action was not enabled.
Location:
trunk/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormComputer.pas

    r50 r68  
    161161  J: Integer;
    162162  GameTries: TGameTries;
     163  Delay: Integer;
    163164begin
    164165  ButtonStart.Enabled := False;
     
    201202      else Break;
    202203      }
    203       Application.ProcessMessages;
    204       Sleep(TrackBar1.Position);
     204      Delay := TrackBar1.Position;
     205      while Delay > 0 do begin
     206        Application.ProcessMessages;
     207        Sleep(10);
     208        Delay := Delay - 10;
     209      end;
    205210    end;
    206211  end;
  • trunk/Forms/UFormMain.pas

    r67 r68  
    223223    while Length(MoveBuffer) > 0 do begin
    224224      MoveBufferLock.Release;
    225       Core.Game.MoveAllAndUpdate(MoveBuffer[0], True);
     225      Core.Game.MoveAllAndUpdate(MoveBuffer[0], Core.Game.AnimationDuration > 0);
    226226      MoveBufferLock.Acquire;
    227227      if Length(MoveBuffer) > 1 then
Note: See TracChangeset for help on using the changeset viewer.