Changeset 248 for trunk/UClientGUI.pas


Ignore:
Timestamp:
Sep 22, 2018, 2:35:46 PM (6 years ago)
Author:
chronos
Message:
  • Fixed: Drawing Voronoi type map in cyclic mode.
  • Fixed: Clear player cells before map cells regeneration.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UClientGUI.pas

    r241 r248  
    507507  end;
    508508  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
    509515    if Assigned(SelectedCell) and TGame(Game).Map.IsCellsNeighbor(NewSelectedCell.MapCell, SelectedCell.MapCell) then begin
    510516      if ssShift in ShiftState then begin
     
    530536        SelectedCell := nil;
    531537      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;
    538539  end;
    539540end;
Note: See TracChangeset for help on using the changeset viewer.