Complete.Org: Mailing Lists: Archives: freeciv-dev: January 1999:
[Freeciv-Dev] Fixing: do not allow to buy Capitalization.
Home

[Freeciv-Dev] Fixing: do not allow to buy Capitalization.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Fixing: do not allow to buy Capitalization.
From: rizos@xxxxxxxx
Date: Wed, 27 Jan 1999 22:30:24 -0600 (CST)

1. Disabling the buy button when a city is building Capitalization:

Line 978 in client/citydlg.c (inside city_dialog_update_building)
which looks like:

  XtSetSensitive(pdialog->buy_command, !pcity->did_buy);

should look like:

  XtSetSensitive(pdialog->buy_command, (!pcity->did_buy)&&
                    (pcity->currently_building!=B_CAPITAL) );



2. Also the following is needed in case that the AI attempts
   to buy Capitalization:

Lines 416-417 in server/cityhand.c (inside really_handle_city_buy)
which look like:

  if (!pcity->is_building_unit) { 
    total=improvement_value(pcity->currently_building);

should look like:

  if (!pcity->is_building_unit) { 
    if (pcity->currently_building == B_CAPITAL)  return; 
    total=improvement_value(pcity->currently_building);



[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Fixing: do not allow to buy Capitalization., rizos <=