Changeset 99 for trunk


Ignore:
Timestamp:
Jan 25, 2018, 8:57:34 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: It was not possible to start revolution and change goverment.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Term.pas

    r90 r99  
    67726772  i, uix, NewFocus, Loc0, OldMaster, Destination, cix, cixOldHome,
    67736773    ServerResult: integer;
    6774   AltGovs, Changed: boolean;
     6774  AltGovs, RevolutionChanged: boolean;
    67756775  QueryText: string;
    67766776
     
    68216821    else
    68226822    begin
    6823       Changed := false;
     6823      RevolutionChanged := false;
    68246824      if MyRO.Happened and phChangeGov <> 0 then
    68256825      begin
     
    68306830          Server(sSetGovernment, me, ModalSelectDlg.result, nil^);
    68316831          CityOptimizer_BeginOfTurn;
    6832           Changed := true;
     6832          RevolutionChanged := true;
    68336833        end
    68346834      end
    68356835      else
    6836       // TODO with MessgExDlg do
     6836      with MessgExDlg do
    68376837      begin // revolution!
    68386838        MessgExDlg.MessgText := Tribe[me].TPhrase('REVOLUTION');
     
    68456845          Play('REVOLUTION');
    68466846          Server(sRevolution, me, 0, nil^);
    6847           Changed := true;
     6847          RevolutionChanged := true;
    68486848          if NatStatDlg.Visible then
    68496849            NatStatDlg.Close;
     
    68526852        end
    68536853      end;
    6854       if Changed then
     6854      if RevolutionChanged then
    68556855        UpdateViews(true);
    68566856    end
Note: See TracChangeset for help on using the changeset viewer.