[Freeciv-Dev] (PR#13360) Choose random tech and future tech
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: |
[Freeciv-Dev] (PR#13360) Choose random tech and future tech |
From: |
"Mateusz Stefek" <mstefek@xxxxxxxxx> |
Date: |
Tue, 28 Jun 2005 03:15:23 -0700 |
Reply-to: |
bugs@xxxxxxxxxxx |
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13360 >
choose_random_tech can't set A_FUTURE and this leads to many bugs.
For example: http://pubserver.freeciv.org/games/443089
Patch attached.
--
mateusz
Index: techtools.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/techtools.c,v
retrieving revision 1.6
diff -u -r1.6 techtools.c
--- techtools.c 27 Jun 2005 08:30:34 -0000 1.6
+++ techtools.c 28 Jun 2005 10:12:34 -0000
@@ -527,7 +527,7 @@
if (research->researching == tech) {
return;
}
- if (get_invention(plr, tech) != TECH_REACHABLE) {
+ if (tech != A_FUTURE && get_invention(plr, tech) != TECH_REACHABLE) {
/* can't research this */
return;
}
- [Freeciv-Dev] (PR#13360) Choose random tech and future tech,
Mateusz Stefek <=
|
|