Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2006:
[Freeciv-Dev] (PR#15199) SDL client: Barbarian nation is playable
Home

[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]
To: himasaram@xxxxxxxx
Subject: [Freeciv-Dev] (PR#15199) SDL client: Barbarian nation is playable
From: "Christian Prochaska" <cp.ml.freeciv.dev@xxxxxxxxxxxxxx>
Date: Wed, 18 Jan 2006 01:23:19 -0800
Reply-to: bugs@xxxxxxxxxxx

<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);

[Prev in Thread] Current Thread [Next in Thread]