Changeset 592 for trunk/LocalPlayer


Ignore:
Timestamp:
Aug 10, 2024, 3:40:04 PM (3 months ago)
Author:
chronos
Message:
  • Fixed: Avoided more GTK2 chrashes.
  • Fixed: Build StdAI with O1 optimization level to avoid crash.
  • Modified: Code cleanup.
Location:
trunk/LocalPlayer
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/CityScreen.pas

    r550 r592  
    14721472          IconKind := mikImp;
    14731473          IconIndex := NewProject and cpIndex;
     1474          Gtk2Fix;
    14741475          ShowModal;
    14751476          QueryOk := ModalResult = mrOK;
     
    15121513        (MyCity[cix].Size < 3) and
    15131514        ((MyModel[NewProject and cpIndex].Kind = mkSlaves) or
    1514         (NewProject and cpConscripts <> 0))) then
    1515         if SimpleQuery(mkYesNo, Phrases.Lookup('EMIGRATE'), 'MSG_DEFAULT') <> mrOK
    1516         then
    1517           NewProject := NewProject or cpDisbandCity;
     1515        (NewProject and cpConscripts <> 0))) then begin
     1516          Gtk2Fix;
     1517          if SimpleQuery(mkYesNo, Phrases.Lookup('EMIGRATE'), 'MSG_DEFAULT') <> mrOK then
     1518            NewProject := NewProject or cpDisbandCity;
     1519        end;
    15181520      Server(sSetCityProject, Me, cix, NewProject);
    15191521      C.Project := MyCity[cix].Project;
  • trunk/LocalPlayer/ClientTools.pas

    r549 r592  
    601601              // TODO: What is this assert for?
    602602              // Need to optimize city tiles but CheckOnly true?
    603               //assert(false)
     603              //Assert(false)
    604604            end
    605605            else
  • trunk/LocalPlayer/Nego.pas

    r558 r592  
    875875          InputDlg.EditInput.Text := '';
    876876          InputDlg.CenterToRect(BoundsRect);
     877          Gtk2Fix;
    877878          InputDlg.ShowModal;
    878879          if InputDlg.ModalResult <> mrOK then
  • trunk/LocalPlayer/Term.pas

    r580 r592  
    75737573      or (MyRO.TestFlags and (tfAllTechs or tfUncover or tfAllContact) <> 0);
    75747574    mEUnitStat.Enabled := MyRO.nEnemyModel > 0;
    7575     { mWonders.Enabled:= false;
    7576       for I:=0 to nWonder - 1 do if MyRO.Wonder[I].CityID <> WonderNotBuiltYet then
    7577       mWonders.Enabled:=True; }
     7575    { mWonders.Enabled:= False;
     7576      for I := 0 to nWonder - 1 do if MyRO.Wonder[I].CityID <> WonderNotBuiltYet then
     7577      mWonders.Enabled := True; }
    75787578    mDiagram.Enabled := MyRO.Turn >= 2;
    75797579    mShips.Enabled := False;
Note: See TracChangeset for help on using the changeset viewer.