Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2003:
[Freeciv-Dev] (PR#6522) steal technology failed: why no incident?
Home

[Freeciv-Dev] (PR#6522) steal technology failed: why no incident?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#6522) steal technology failed: why no incident?
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Fri, 24 Oct 2003 05:23:36 -0700
Reply-to: rt@xxxxxxxxxxxxxx

[jdorje - Tue Oct 14 16:41:54 2003]:
> When a civ I am at peace with steals technology from me, there is an 
> "incident" and their reputation drops.
> 
> When they try to steal technology and fail, there is no incident.  This 
> seems wrong.

I agree. The attached patch should fix this.

  - Per

Index: server/diplomats.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/diplomats.c,v
retrieving revision 1.43
diff -u -r1.43 diplomats.c
--- server/diplomats.c  8 Oct 2003 16:56:07 -0000       1.43
+++ server/diplomats.c  24 Oct 2003 12:23:18 -0000
@@ -552,6 +552,8 @@
     notify_player_ex(cplayer, pcity->x, pcity->y, E_ENEMY_DIPLOMAT_FAILED,
                     _("Game: %s's %s failed to steal technology from %s."),
                     pplayer->name, unit_name(pdiplomat->type), pcity->name);
+    /* this may cause a diplomatic incident */
+    maybe_cause_incident(DIPLOMAT_STEAL, pplayer, NULL, pcity);
     wipe_unit (pdiplomat);
     return;
   }

[Prev in Thread] Current Thread [Next in Thread]