Changeset 89 for trunk


Ignore:
Timestamp:
Nov 16, 2014, 2:43:04 PM (10 years ago)
Author:
chronos
Message:
  • Added: Holding SHIFT key during click to attack maximum available power is moved without dialog confirmation.
  • Fixed: Also store to file state if game is in Running mode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGame.pas

    r88 r89  
    20132013  if Assigned(NewSelectedCell) then begin
    20142014    if Assigned(SelectedCell) and Game.Map.IsCellsNeighbor(NewSelectedCell, SelectedCell) then begin
     2015      if ssShift in ShiftState then begin
     2016        // Make maximum unit move without confirmation dialog
     2017        Game.SetMove(SelectedCell, NewSelectedCell, SelectedCell.Power, False);
     2018        SelectedCell := nil;
     2019      end else
    20152020      if ssCtrl in ShiftState then begin
    20162021        // If CTRL key pressed then storno all moved from selected cell and
     
    24562461        TPlayer(Players[I]).PlayerMap.CheckVisibility;
    24572462      end;
     2463      Running := ReadBoolean(RootNode, 'Running', True);
    24582464    end;
    24592465  finally
     
    24872493      WriteInteger(RootNode, 'WinObjective', Integer(WinObjective));
    24882494      WriteInteger(RootNode, 'StayAliveForDefinedTurns', StayAliveForDefinedTurns);
     2495      WriteBoolean(RootNode, 'Running', Running);
    24892496
    24902497      NewNode := OwnerDocument.CreateElement('Map');
Note: See TracChangeset for help on using the changeset viewer.