Project

General

Profile

Bug #467 » 0036-Correct-reenable-to-re-enable.patch

S3_2 - Marko Lindqvist, 04/18/2024 02:10 AM

View differences:

client/gui-gtk-3.22/action_dialog.c
const gchar *tooltip;
/* An action that just became impossible has its button disabled.
* An action that became possible again must be reenabled. */
* An action that became possible again must be re-enabled. */
choice_dialog_button_set_sensitive(act_sel_dialog,
action_button_map[act_id],
action_prob_possible(act_probs[act_id]));
client/gui-gtk-4.0/action_dialog.c
const gchar *tooltip;
/* An action that just became impossible has its button disabled.
* An action that became possible again must be reenabled. */
* An action that became possible again must be re-enabled. */
choice_dialog_button_set_sensitive(act_sel_dialog,
action_button_map[act_id],
action_prob_possible(act_probs[act_id]));
client/gui-qt/dialogs.cpp
QString tool_tip;
/* An action that just became impossible has its button disabled.
* An action that became possible again must be reenabled. */
* An action that became possible again must be re-enabled. */
button->setEnabled(action_prob_possible(act_probs[act]));
button->setData1(data1);
button->setData2(data2);
client/mapview_common.h
extern struct view mapview;
/* HACK: Callers can set this to FALSE to disable sliding. It should be
* reenabled afterwards. */
* re-enabled afterwards. */
extern bool can_slide;
#define BORDER_WIDTH 2
doc/README.governor
There are several situations where the Governor can't fulfill the
requirements just temporarily, e.g. when you move a ship from one city
to another, or when an enemy walks through your country. The Governor
passes back control in these cases, and you have to reenable it
passes back control in these cases, and you have to re-enable it
manually. A general approach to prevent this might be, to set the
minimal surpluses as low as possible (-20). Of course you must be
careful with the food and shield surpluses.
(2-2/3)