Changeset 248 for trunk/UClientGUI.pas
- Timestamp:
- Sep 22, 2018, 2:35:46 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UClientGUI.pas
r241 r248 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 509 515 if Assigned(SelectedCell) and TGame(Game).Map.IsCellsNeighbor(NewSelectedCell.MapCell, SelectedCell.MapCell) then begin 510 516 if ssShift in ShiftState then begin … … 530 536 SelectedCell := nil; 531 537 end; 532 end else 533 if (NewSelectedCell <> SelectedCell) and (NewSelectedCell.MapCell.Player = Player) then 534 SelectedCell := NewSelectedCell 535 else 536 if (NewSelectedCell = SelectedCell) and (NewSelectedCell.MapCell.Player = Player) then 537 SelectedCell := nil; 538 end; 538 539 end; 539 540 end;
Note:
See TracChangeset
for help on using the changeset viewer.