Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] Re: (PR#4314) Bug: Connecting to dead players
Home

[Freeciv-Dev] Re: (PR#4314) Bug: Connecting to dead players

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ChrisK@xxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#4314) Bug: Connecting to dead players
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 28 Aug 2004 20:48:37 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=4314 >

attached is a patch which at elucidates the type of players that you take.
Is this sufficient?

-mike

diff -Nur -Xcvs/diff_ignore snap/server/stdinhand.c snap-dead/server/stdinhand.c
--- snap/server/stdinhand.c     2004-08-28 10:38:55.000000000 -0500
+++ snap-dead/server/stdinhand.c        2004-08-28 22:44:57.686716177 -0500
@@ -4106,8 +4106,10 @@
     toggle_ai_player_direct(NULL, pplayer);
   }
 
-  cmd_reply(CMD_TAKE, caller, C_OK, _("%s now controls %s"), 
-            pconn->username, pplayer->name);
+  cmd_reply(CMD_TAKE, caller, C_OK, _("%s now controls %s (%s, %s)"), 
+            pconn->username, pplayer->name, 
+            is_barbarian(pplayer) ? _("Barbarian") : pplayer->ai.control ?
+            _("AI") : _("Human"), pplayer->is_alive ? _("Alive") : _("Dead"));
 
   end:;
   /* free our args */

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#4314) Bug: Connecting to dead players, Mike Kaufman <=