Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2003:
[Freeciv-Dev] (PR#2759) warning message while loading tech sprites
Home

[Freeciv-Dev] (PR#2759) warning message while loading tech sprites

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#2759) warning message while loading tech sprites
From: "Jason Short via RT" <rt@xxxxxxxxxxxxxx>
Date: Thu, 16 Jan 2003 12:21:28 -0800
Reply-to: rt@xxxxxxxxxxxxxx

[rfalke - Wed Jan  8 09:20:19 2003]:

> 
> I get this
>   2: Don't have graphics tags  or  for tech_type None
> for both trident and isotrident.

The attached patch fixes this by not trying to load a sprite for A_NONE.

jason

Index: client/tilespec.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/tilespec.c,v
retrieving revision 1.105
diff -u -r1.105 tilespec.c
--- client/tilespec.c   2003/01/09 02:36:36     1.105
+++ client/tilespec.c   2003/01/16 20:20:34
@@ -334,7 +334,8 @@
   impr_type_iterate(imp_id) {
     tilespec_setup_impr_type(imp_id);
   } impr_type_iterate_end;
-  for (id = 0; id < game.num_tech_types; id++) {
+  for (id = A_FIRST; id < game.num_tech_types; id++) {
+    /* This loop skips A_NONE, but also A_FUTURE. */
     if (tech_exists(id)) {
       tilespec_setup_tech_type(id);
     }

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