Changeset 216 for trunk


Ignore:
Timestamp:
May 26, 2018, 12:50:50 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: Connect spectator clients to server.
  • Fixed: Show objective targets cells in the map even if their power is zero.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r215 r216  
    515515  Form := TFormClient.Create(nil);
    516516  Form.Client := LocalClients.New(SSpectator);
     517  Form.Client.LocalServer := Server;
     518  Form.Client.ConnectType := ctLocal;
     519  Form.Client.Active := True;
    517520  //Form.Client.Form := Form;
    518521  //Form.Client.ControlPlayer := Player;
  • trunk/UGame.pas

    r215 r216  
    15511551
    15521552    // Show cell text
    1553     if Cell.GetAvialPower <> 0 then begin
     1553    if (Cell.GetAvialPower <> 0) or (Cell.Extra = etObjectiveTarget) then begin
    15541554      Pen.Style := psSolid;
    15551555      Font.Color := clWhite;
Note: See TracChangeset for help on using the changeset viewer.