Changeset 257 for tags/1.3.0/UClientGUI.pas
- Timestamp:
- Sep 23, 2018, 12:29:16 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/1.3.0/UClientGUI.pas
r248 r257 507 507 end; 508 508 if Assigned(NewSelectedCell) then begin 509 if (NewSelectedCell <> SelectedCell) and (NewSelectedCell.MapCell.Player = Player) then begin 510 SelectedCell := NewSelectedCell 511 end else 512 if (NewSelectedCell = SelectedCell) and (NewSelectedCell.MapCell.Player = Player) then begin 513 SelectedCell := nil; 514 end else 515 if Assigned(SelectedCell) and TGame(Game).Map.IsCellsNeighbor(NewSelectedCell.MapCell, SelectedCell.MapCell) then begin 509 if Assigned(SelectedCell) and (NewSelectedCell <> SelectedCell) and 510 TGame(Game).Map.IsCellsNeighbor(NewSelectedCell.MapCell, SelectedCell.MapCell) then begin 516 511 if ssShift in ShiftState then begin 517 512 // Make maximum unit move without confirmation dialog … … 536 531 SelectedCell := nil; 537 532 end; 533 end else 534 if (NewSelectedCell <> SelectedCell) and (NewSelectedCell.MapCell.Player = Player) then begin 535 SelectedCell := NewSelectedCell 536 end else 537 if (NewSelectedCell = SelectedCell) and (NewSelectedCell.MapCell.Player = Player) then begin 538 SelectedCell := nil; 538 539 end; 539 540 end;
Note:
See TracChangeset
for help on using the changeset viewer.