[Freeciv-Dev] (PR#11670) remove game.rtech.nav
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11670 >
game.rtech.nav is unused. This patch removes it.
-jason
Index: common/game.h
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/game.h,v
retrieving revision 1.167
diff -u -r1.167 game.h
--- common/game.h 19 Dec 2004 16:47:09 -0000 1.167
+++ common/game.h 23 Dec 2004 22:43:28 -0000
@@ -173,8 +173,6 @@
Impr_Type_id land_defend_building;
struct {
- int nav; /* AI convenience: tech_req for first
- non-trireme ferryboat */
int u_partisan; /* convenience: tech_req for first
Partisan unit */
/* Following tech list is A_LAST terminated if shorter than
Index: server/ruleset.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/ruleset.c,v
retrieving revision 1.224
diff -u -r1.224 ruleset.c
--- server/ruleset.c 21 Dec 2004 03:36:19 -0000 1.224
+++ server/ruleset.c 23 Dec 2004 22:43:29 -0000
@@ -1090,18 +1090,6 @@
exit(EXIT_FAILURE);
}
- /* pre-calculate game.rtech.nav (tech for non-trireme ferryboat) */
- game.rtech.nav = A_LAST;
- for(i=0; i<num_role_units(L_FERRYBOAT); i++) {
- j = get_role_unit(L_FERRYBOAT,i);
- if (!unit_type_flag(j, F_TRIREME)) {
- j = get_unit_type(j)->tech_requirement;
- freelog(LOG_DEBUG, "nav tech is %s", advances[j].name);
- game.rtech.nav = j;
- break;
- }
- }
-
/* pre-calculate game.rtech.u_partisan
(tech for first partisan unit, or A_LAST */
if (num_role_units(L_PARTISAN)==0) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#11670) remove game.rtech.nav,
Jason Short <=
|
|