[Freeciv-Dev] (PR#15199) SDL client: Barbarian nation is playable
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=15199 >
> [jdorje - Mi 18. Jan 2006, 00:25:11]:
>
> Daniel Markstedt wrote:
> > <URL: http://bugs.freeciv.org/Ticket/Display.html?id=15199 >
> >
> > Barbarian nation is listed in the Select Nation dialog and fully
> > playable.
>
> Nations that have pnation->is_playable disabled shouldn't be choosable.
>
> -jason
>
Here's a patch.
Index: client/gui-sdl/dialogs.c
===================================================================
--- client/gui-sdl/dialogs.c (Revision 11468)
+++ client/gui-sdl/dialogs.c (Arbeitskopie)
@@ -4128,7 +4128,11 @@
pText_Class = NULL;
nations_iterate(pNation) {
-
+
+ if (!is_nation_playable(pNation) || !pNation->is_available) {
+ continue;
+ }
+
pTmp_Surf_zoomed = adj_surf(GET_SURF(get_nation_flag_sprite(tileset,
pNation)));
pTmp_Surf = crop_rect_from_surface(pMain_Bg, NULL);
|
|