Author: sveinung
Date: Sun May  3 18:38:00 2015
New Revision: 28978

URL: http://svn.gna.org/viewcvs/freeciv?rev=28978&view=rev
Log:
A player never cause an incident with him self.

See patch #6062

Modified:
    branches/S2_6/server/actiontools.c

Modified: branches/S2_6/server/actiontools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/actiontools.c?rev=28978&r1=28977&r2=28978&view=diff
==============================================================================
--- branches/S2_6/server/actiontools.c  (original)
+++ branches/S2_6/server/actiontools.c  Sun May  3 18:38:00 2015
@@ -30,6 +30,11 @@
                                  const struct tile *victim_tile,
                                  const char *victim_link)
 {
+  if (offender == victim_player) {
+    /* The player is more than willing to forgive him self. */
+    return;
+  }
+
   if (!pplayers_at_war(offender, victim_player)) {
     switch (action) {
     case ACTION_SPY_BRIBE_UNIT:


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

Reply via email to