Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2005:
[Freeciv-Dev] (PR#13375) ALTLinux freeciv patches: say revolution length
Home

[Freeciv-Dev] (PR#13375) ALTLinux freeciv patches: say revolution length

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#13375) ALTLinux freeciv patches: say revolution length to player
From: "Egor Vyscrebentsov" <evyscr@xxxxxxxxx>
Date: Wed, 29 Jun 2005 13:42:25 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13375 >

Good daytime!

Attached is a patch from ALTLinux freeciv-2.0.2-alt2.src.rpm that say
player info about length of initiated revolution.

Author of patch is Dmitry V. Levin <ldv AT altlinux.org>
--
Thanks, evyscr
--- freeciv-2.0.0/server/plrhand.c.orig 2004-12-09 19:37:33 +0300
+++ freeciv-2.0.0/server/plrhand.c      2004-12-16 19:26:20 +0300
@@ -926,8 +926,9 @@
          pplayer->name, get_government_name(pplayer->target_government),
          pplayer->revolution_finishes, game.turn);
   notify_player_ex(pplayer, NULL, E_REVOLT_START,
-                  _("Game: The %s have incited a revolt!"),
-                  get_nation_name_plural(pplayer->nation));
+                  _("Game: The %s have incited a %d-turn revolt!"),
+                  get_nation_name_plural(pplayer->nation),
+                  (pplayer->revolution_finishes - game.turn));
   gamelog(GAMELOG_REVOLT, pplayer);
 
   /* Now see if the revolution is instantaneous. */

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