[Freeciv-Dev] (PR#14341) server crash with ai and future techs
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14341 >
> [jdorje - Sat Oct 15 17:44:22 2005]:
Patches attached.
--
mateusz
Index: ai/aicity.c
===================================================================
--- ai/aicity.c (wersja 11128)
+++ ai/aicity.c (kopia robocza)
@@ -333,10 +333,9 @@
}
break;
case EFT_GIVE_IMM_TECH:
- v += ((total_bulbs_required(pplayer) * amount
- + game.researchcost)
- * TRADE_WEIGHTING - pplayer->research.bulbs_researched
- * TRADE_WEIGHTING) / MORT;
+ if (!ai_wants_no_science(pplayer)) {
+ v += amount * 100;
+ }
break;
case EFT_HAVE_EMBASSIES:
v += 5 * nplayers;
Index: ai/aicity.c
===================================================================
--- ai/aicity.c (wersja 11128)
+++ ai/aicity.c (kopia robocza)
@@ -333,10 +333,9 @@
}
break;
case EFT_GIVE_IMM_TECH:
- v += ((total_bulbs_required(pplayer) * amount
- + game.researchcost)
- * TRADE_WEIGHTING - pplayer->research.bulbs_researched
- * TRADE_WEIGHTING) / MORT;
+ if (!ai_wants_no_science(pplayer)) {
+ v += amount * 100;
+ }
break;
case EFT_HAVE_EMBASSIES:
v += 5 * nplayers;
|
|