Author: cazfi
Date: Tue Apr  7 00:44:46 2015
New Revision: 28731

URL: http://svn.gna.org/viewcvs/freeciv?rev=28731&view=rev
Log:
Do not grant techs to dead players when the tech cost goes below the amount of 
bulbs
they had collected while alive.

See bug #23437

Modified:
    trunk/server/techtools.c

Modified: trunk/server/techtools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/techtools.c?rev=28731&r1=28730&r2=28731&view=diff
==============================================================================
--- trunk/server/techtools.c    (original)
+++ trunk/server/techtools.c    Tue Apr  7 00:44:46 2015
@@ -568,6 +568,11 @@
 {
   struct research *research = research_get(pplayer);
 
+  if (!pplayer->is_alive) {
+    /* Dead players do not produce research */
+    return;
+  }
+
   /* count our research contribution this turn */
   pplayer->server.bulbs_last_turn += bulbs;
   research->bulbs_researched += bulbs;


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to