Changeset 704 for trunk/LocalPlayer


Ignore:
Timestamp:
Aug 12, 2025, 3:14:50 PM (2 weeks ago)
Author:
chronos
Message:
  • Fixed: Enable map move keys also in editor mode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Term.pas

    r676 r704  
    71607160  if not Idle then Exit;
    71617161
     7162  // Map move
     7163  if BMapMoveLeftDown.Test(ShortCut) then DoMoveMap(-1, 1)
     7164  else if BMapMoveDown.Test(ShortCut) then DoMoveMap(0, 2)
     7165  else if BMapMoveRightDown.Test(ShortCut) then DoMoveMap(1, 1)
     7166  else if BMapMoveLeft.Test(ShortCut) then DoMoveMap(-2, 0)
     7167  else if BMapMoveRight.Test(ShortCut) then DoMoveMap(2, 0)
     7168  else if BMapMoveLeftUp.Test(ShortCut) then DoMoveMap(-1, -1)
     7169  else if BMapMoveUp.Test(ShortCut) then DoMoveMap(0, -2)
     7170  else if BMapMoveRightUp.Test(ShortCut) then DoMoveMap(1, -1);
     7171
    71627172  if ClientMode = cEditMap then begin
    71637173    if BResign.Test(ShortCut) then mResign.Click
     
    72787288    else if BUnitMoveLeftUp.Test(ShortCut) then DoMoveUnit(-1, -1)
    72797289    else if BUnitMoveUp.Test(ShortCut) then  DoMoveUnit(0, -2)
    7280     else if BUnitMoveRightUp.Test(ShortCut) then DoMoveUnit(1, -1)
    7281     // Map move
    7282     else if BMapMoveLeftDown.Test(ShortCut) then DoMoveMap(-1, 1)
    7283     else if BMapMoveDown.Test(ShortCut) then DoMoveMap(0, 2)
    7284     else if BMapMoveRightDown.Test(ShortCut) then DoMoveMap(1, 1)
    7285     else if BMapMoveLeft.Test(ShortCut) then DoMoveMap(-2, 0)
    7286     else if BMapMoveRight.Test(ShortCut) then DoMoveMap(2, 0)
    7287     else if BMapMoveLeftUp.Test(ShortCut) then DoMoveMap(-1, -1)
    7288     else if BMapMoveUp.Test(ShortCut) then DoMoveMap(0, -2)
    7289     else if BMapMoveRightUp.Test(ShortCut) then DoMoveMap(1, -1);
     7290    else if BUnitMoveRightUp.Test(ShortCut) then DoMoveUnit(1, -1);
    72907291  end;
    72917292end;
Note: See TracChangeset for help on using the changeset viewer.