Author: pepeto Date: Sun Sep 14 12:32:39 2014 New Revision: 26402 URL: http://svn.gna.org/viewcvs/freeciv?rev=26402&view=rev Log: Replace tech_leakage magic values by enumerators/strings.
See gna patch #5174 Modified: trunk/common/fc_types.h trunk/common/game.h trunk/common/packets.def trunk/common/research.c trunk/common/tech.c trunk/data/alien/buildings.ruleset trunk/data/alien/cities.ruleset trunk/data/alien/effects.ruleset trunk/data/alien/game.ruleset trunk/data/alien/governments.ruleset trunk/data/alien/nations.ruleset trunk/data/alien/styles.ruleset trunk/data/alien/techs.ruleset trunk/data/alien/terrain.ruleset trunk/data/alien/units.ruleset trunk/data/civ1/buildings.ruleset trunk/data/civ1/cities.ruleset trunk/data/civ1/effects.ruleset trunk/data/civ1/game.ruleset trunk/data/civ1/governments.ruleset trunk/data/civ1/nations.ruleset trunk/data/civ1/styles.ruleset trunk/data/civ1/techs.ruleset trunk/data/civ1/terrain.ruleset trunk/data/civ1/units.ruleset trunk/data/civ2/buildings.ruleset trunk/data/civ2/cities.ruleset trunk/data/civ2/effects.ruleset trunk/data/civ2/game.ruleset trunk/data/civ2/governments.ruleset trunk/data/civ2/nations.ruleset trunk/data/civ2/styles.ruleset trunk/data/civ2/techs.ruleset trunk/data/civ2/terrain.ruleset trunk/data/civ2/units.ruleset trunk/data/civ2civ3/buildings.ruleset trunk/data/civ2civ3/cities.ruleset trunk/data/civ2civ3/effects.ruleset trunk/data/civ2civ3/game.ruleset trunk/data/civ2civ3/governments.ruleset trunk/data/civ2civ3/nations.ruleset trunk/data/civ2civ3/styles.ruleset trunk/data/civ2civ3/techs.ruleset trunk/data/civ2civ3/terrain.ruleset trunk/data/civ2civ3/units.ruleset trunk/data/classic/buildings.ruleset trunk/data/classic/cities.ruleset trunk/data/classic/effects.ruleset trunk/data/classic/game.ruleset trunk/data/classic/governments.ruleset trunk/data/classic/nations.ruleset trunk/data/classic/styles.ruleset trunk/data/classic/techs.ruleset trunk/data/classic/terrain.ruleset trunk/data/classic/units.ruleset trunk/data/experimental/buildings.ruleset trunk/data/experimental/cities.ruleset trunk/data/experimental/effects.ruleset trunk/data/experimental/game.ruleset trunk/data/experimental/governments.ruleset trunk/data/experimental/nations.ruleset trunk/data/experimental/styles.ruleset trunk/data/experimental/techs.ruleset trunk/data/experimental/terrain.ruleset trunk/data/experimental/units.ruleset trunk/data/multiplayer/buildings.ruleset trunk/data/multiplayer/cities.ruleset trunk/data/multiplayer/effects.ruleset trunk/data/multiplayer/game.ruleset trunk/data/multiplayer/governments.ruleset trunk/data/multiplayer/nations.ruleset trunk/data/multiplayer/styles.ruleset trunk/data/multiplayer/techs.ruleset trunk/data/multiplayer/terrain.ruleset trunk/data/multiplayer/units.ruleset trunk/data/stub/buildings.ruleset trunk/data/stub/cities.ruleset trunk/data/stub/effects.ruleset trunk/data/stub/game.ruleset trunk/data/stub/governments.ruleset trunk/data/stub/nations.ruleset trunk/data/stub/styles.ruleset trunk/data/stub/techs.ruleset trunk/data/stub/terrain.ruleset trunk/data/stub/units.ruleset trunk/server/ruleset.c trunk/server/ruleset.h trunk/tools/ruledit/rulesave.c [This mail would be too long, it was shortened to contain the URLs only.] Modified: trunk/common/fc_types.h URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/fc_types.h?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/common/game.h URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/game.h?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/common/packets.def URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/packets.def?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/common/research.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/research.c?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/common/tech.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/tech.c?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/alien/buildings.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/alien/buildings.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/alien/cities.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/alien/cities.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/alien/effects.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/alien/effects.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/alien/game.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/alien/game.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/alien/governments.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/alien/governments.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/alien/nations.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/alien/nations.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/alien/styles.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/alien/styles.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/alien/techs.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/alien/techs.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/alien/terrain.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/alien/terrain.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/alien/units.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/alien/units.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ1/buildings.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ1/buildings.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ1/cities.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ1/cities.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ1/effects.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ1/effects.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ1/game.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ1/game.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ1/governments.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ1/governments.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ1/nations.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ1/nations.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ1/styles.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ1/styles.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ1/techs.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ1/techs.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ1/terrain.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ1/terrain.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ1/units.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ1/units.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2/buildings.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2/buildings.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2/cities.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2/cities.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2/effects.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2/effects.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2/game.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2/game.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2/governments.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2/governments.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2/nations.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2/nations.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2/styles.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2/styles.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2/techs.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2/techs.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2/terrain.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2/terrain.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2/units.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2/units.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2civ3/buildings.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2civ3/buildings.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2civ3/cities.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2civ3/cities.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2civ3/effects.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2civ3/effects.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2civ3/game.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2civ3/game.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2civ3/governments.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2civ3/governments.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2civ3/nations.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2civ3/nations.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2civ3/styles.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2civ3/styles.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2civ3/techs.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2civ3/techs.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2civ3/terrain.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2civ3/terrain.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/civ2civ3/units.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2civ3/units.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/classic/buildings.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/classic/buildings.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/classic/cities.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/classic/cities.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/classic/effects.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/classic/effects.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/classic/game.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/classic/game.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/classic/governments.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/classic/governments.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/classic/nations.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/classic/nations.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/classic/styles.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/classic/styles.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/classic/techs.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/classic/techs.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/classic/terrain.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/classic/terrain.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/classic/units.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/classic/units.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/experimental/buildings.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/experimental/buildings.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/experimental/cities.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/experimental/cities.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/experimental/effects.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/experimental/effects.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/experimental/game.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/experimental/game.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/experimental/governments.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/experimental/governments.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/experimental/nations.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/experimental/nations.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/experimental/styles.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/experimental/styles.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/experimental/techs.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/experimental/techs.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/experimental/terrain.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/experimental/terrain.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/experimental/units.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/experimental/units.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/multiplayer/buildings.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/multiplayer/buildings.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/multiplayer/cities.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/multiplayer/cities.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/multiplayer/effects.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/multiplayer/effects.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/multiplayer/game.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/multiplayer/game.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/multiplayer/governments.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/multiplayer/governments.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/multiplayer/nations.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/multiplayer/nations.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/multiplayer/styles.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/multiplayer/styles.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/multiplayer/techs.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/multiplayer/techs.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/multiplayer/terrain.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/multiplayer/terrain.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/multiplayer/units.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/multiplayer/units.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/stub/buildings.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/stub/buildings.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/stub/cities.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/stub/cities.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/stub/effects.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/stub/effects.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/stub/game.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/stub/game.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/stub/governments.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/stub/governments.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/stub/nations.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/stub/nations.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/stub/styles.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/stub/styles.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/stub/techs.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/stub/techs.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/stub/terrain.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/stub/terrain.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/data/stub/units.ruleset URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/stub/units.ruleset?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/server/ruleset.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/ruleset.c?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/server/ruleset.h URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/ruleset.h?rev=26402&r1=26401&r2=26402&view=diff Modified: trunk/tools/ruledit/rulesave.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/tools/ruledit/rulesave.c?rev=26402&r1=26401&r2=26402&view=diff _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits