[Freeciv-Dev] (PR#12062) help for palace doesn't work
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12062 >
> [jdorje - Tue Feb 01 04:24:14 2005]:
>
> Indeed it does not. Probably a problem with all small wonders. Vasco?
Here is a patch.
Index: client/gui-gtk-2.0/citydlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/citydlg.c,v
retrieving revision 1.111
diff -u -r1.111 citydlg.c
--- client/gui-gtk-2.0/citydlg.c 22 Jan 2005 19:45:40 -0000 1.111
+++ client/gui-gtk-2.0/citydlg.c 2 Feb 2005 01:25:00 -0000
@@ -2561,7 +2561,11 @@
if (!(mask & GDK_CONTROL_MASK)) {
sell_callback(id, data);
} else {
- popup_help_dialog_typed(get_improvement_name(id), HELP_IMPROVEMENT);
+ if (is_great_wonder(id)) {
+ popup_help_dialog_typed(get_improvement_name(id), HELP_WONDER);
+ } else {
+ popup_help_dialog_typed(get_improvement_name(id), HELP_IMPROVEMENT);
+ }
}
}
Index: client/gui-gtk-2.0/wldlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/wldlg.c,v
retrieving revision 1.39
diff -u -r1.39 wldlg.c
--- client/gui-gtk-2.0/wldlg.c 19 Dec 2004 16:47:08 -0000 1.39
+++ client/gui-gtk-2.0/wldlg.c 2 Feb 2005 01:25:01 -0000
@@ -558,7 +558,7 @@
if (is_unit) {
popup_help_dialog_typed(get_unit_type(id)->name, HELP_UNIT);
- } else if (is_wonder(id)) {
+ } else if (is_great_wonder(id)) {
popup_help_dialog_typed(get_improvement_name(id), HELP_WONDER);
} else {
popup_help_dialog_typed(get_improvement_name(id), HELP_IMPROVEMENT);
|
|