[Freeciv-Dev] (PR#6229) adjective mysterious for own city
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] (PR#6229) adjective mysterious for own city |
From: |
"Genevieve Gracian" <ggracian@xxxxxxx> |
Date: |
Sun, 21 Sep 2003 11:15:29 -0700 |
Reply-to: |
rt@xxxxxxxxxxxxxx |
Hello,
When getting info on your own city with middle-click on the map, it has
the adjective "Mysterious".
diff -r -u freeciv/client/mapctrl_common.c
self_mysterious/client/mapctrl_common.c
--- freeciv/client/mapctrl_common.c 2003-09-20 14:00:58.000000000 +0200
+++ self_mysterious/client/mapctrl_common.c 2003-09-21 17:42:51.000000000
+0200
@@ -298,11 +298,18 @@
}
}
if (pcity) {
+ struct player *owner = map_get_owner(xtile, ytile);
+ if (owner == game.player_ptr){
+ my_snprintf(buf, sizeof(buf), _("\nCity: %s(%s)"), pcity->name,
+ get_nation_name(city_owner(pcity)->nation));
+ sz_strlcat(out, buf);
+ } else if (owner) {
my_snprintf(buf, sizeof(buf), _("\nCity: %s(%s,%s)"), pcity->name,
get_nation_name(city_owner(pcity)->nation),
diplo_adjectives[game.player_ptr->
diplstates[city_owner(pcity)->player_no].type]);
sz_strlcat(out, buf);
+ }
if (city_got_citywalls(pcity)) {
sz_strlcat(out, _(" with City Walls"));
}
related to ticket 5378.
--
G. Gracian
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#6229) adjective mysterious for own city,
Genevieve Gracian <=
|
|