Author: cazfi
Date: Tue Apr  7 00:44:56 2015
New Revision: 28732

URL: http://svn.gna.org/viewcvs/freeciv?rev=28732&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:
    branches/S2_6/server/techtools.c

Modified: branches/S2_6/server/techtools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/techtools.c?rev=28732&r1=28731&r2=28732&view=diff
==============================================================================
--- branches/S2_6/server/techtools.c    (original)
+++ branches/S2_6/server/techtools.c    Tue Apr  7 00:44:56 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