Ignore:
Timestamp:
Aug 10, 2024, 3:40:04 PM (6 weeks ago)
Author:
chronos
Message:
  • Fixed: Avoided more GTK2 chrashes.
  • Fixed: Build StdAI with O1 optimization level to avoid crash.
  • Modified: Code cleanup.
File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.