Changeset 367 for trunk/Direct.pas


Ignore:
Timestamp:
Apr 14, 2021, 9:12:03 AM (4 years ago)
Author:
chronos
Message:
  • Modified: Enable in development network game only if NetworkEnabled registry value is activated.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Direct.pas

    r364 r367  
    186186  BrainTerm.Client := LocalPlayer.Client;
    187187  BrainTerm.Name := Phrases.Lookup('HUMAN');
    188   BrainNetworkServer.Client := UNetworkServer.Client;
    189   BrainNetworkServer.Name := Phrases.Lookup('NETWORK_SERVER');
    190   BrainNetworkClient.Client := UNetworkClient.Client;
    191   BrainNetworkClient.Name := Phrases.Lookup('NETWORK_CLIENT');
     188  if NetworkEnabled then begin
     189    BrainNetworkServer.Client := UNetworkServer.Client;
     190    BrainNetworkServer.Name := Phrases.Lookup('NETWORK_SERVER');
     191    BrainNetworkClient.Client := UNetworkClient.Client;
     192    BrainNetworkClient.Name := Phrases.Lookup('NETWORK_CLIENT');
     193  end;
    192194  BrainRandom.Name := Phrases.Lookup('RANDOMAI');
    193195  Canvas.Font.Assign(UniFont[ftNormal]);
Note: See TracChangeset for help on using the changeset viewer.