Author: sveinung
Date: Sun May  3 17:46:54 2015
New Revision: 28973

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

See patch #6062

Modified:
    trunk/server/actiontools.c

Modified: trunk/server/actiontools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/actiontools.c?rev=28973&r1=28972&r2=28973&view=diff
==============================================================================
--- trunk/server/actiontools.c  (original)
+++ trunk/server/actiontools.c  Sun May  3 17:46:54 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