[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]
[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);
}
- [Freeciv-Dev] (PR#2759) warning message while loading tech sprites,
Jason Short via RT <=
|
|