Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2005:
[Freeciv-Dev] (PR#13392) Stealing Future tech in get_a_tech
Home

[Freeciv-Dev] (PR#13392) Stealing Future tech in get_a_tech

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#13392) Stealing Future tech in get_a_tech
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Sat, 2 Jul 2005 00:20:57 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13392 >

I found another technology bug. It looks like a relict from times when
future techs were completely differently implemented.
--
mateusz
Index: server/plrhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/plrhand.c,v
retrieving revision 1.330.2.29
diff -u -r1.330.2.29 plrhand.c
--- server/plrhand.c    29 Jun 2005 03:32:43 -0000      1.330.2.29
+++ server/plrhand.c    2 Jul 2005 07:17:58 -0000
@@ -719,7 +719,7 @@
     /* we've moved on to future tech */
     if (target->future_tech > pplayer->future_tech) {
       found_new_future_tech(pplayer);
-      stolen_tech = game.num_tech_types + pplayer->future_tech;
+      stolen_tech = A_FUTURE;
     } else {
       return; /* nothing to learn here, move on */
     }

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