<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39673 >
I can't buy anything
Progressbar of production is always full
Governor always shows `Production completed: 1 turn'
...
After a week working with different revisions I understand that an int
to bool conversion cause all of them >:o
Patch attached
____________________
Arman Ordookhani
Index: common/city.c
===================================================================
--- common/city.c (revision 13470)
+++ common/city.c (working copy)
@@ -406,7 +406,7 @@
/**************************************************************************
Return the number of shields it takes to build current city production.
**************************************************************************/
-bool city_production_build_shield_cost(const struct city *pcity)
+int city_production_build_shield_cost(const struct city *pcity)
{
return universal_build_shield_cost(&pcity->production);
}
Index: common/city.h
===================================================================
--- common/city.h (revision 13470)
+++ common/city.h (working copy)
@@ -428,7 +428,7 @@
bool city_got_defense_effect(const struct city *pcity,
const struct unit_type *attacker);
-bool city_production_build_shield_cost(const struct city *pcity);
+int city_production_build_shield_cost(const struct city *pcity);
int city_production_buy_gold_cost(const struct city *pcity);
bool city_production_has_flag(const struct city *pcity,
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev