Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#9794) (GTK2) No way to know unit pop_cost for player?
Home

[Freeciv-Dev] (PR#9794) (GTK2) No way to know unit pop_cost for player?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: evyscr@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#9794) (GTK2) No way to know unit pop_cost for player?
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 12 Sep 2004 17:25:11 -0700
Reply-to: rt@xxxxxxxxxxx

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

> [evyscr - Tue Aug 24 17:16:48 2004]:
> 
> CVS 2004-08-18, GTK-2
> 
> I could not find any place where i could get to know
> about population cost of unit. There is nothing about it
> in neither help nor city production tab.

Good catch.

The unittype help gives lots of info, but nothing on pop_cost.  This
patch adds it.  Are there any other properties that are forgotten?

jason

? settler_recursion_crash
Index: client/helpdata.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/helpdata.c,v
retrieving revision 1.74
diff -u -r1.74 helpdata.c
--- client/helpdata.c   4 Sep 2004 21:11:46 -0000       1.74
+++ client/helpdata.c   13 Sep 2004 00:24:28 -0000
@@ -561,6 +561,10 @@
   utype = get_unit_type(i);
   
   buf[0] = '\0';
+  if (utype->pop_cost > 0) {
+    sprintf(buf + strlen(buf), _("* Requires %d population to build.\n"),
+           utype->pop_cost);
+  }
   if (utype->transport_capacity>0) {
     if (unit_type_flag(i, F_CARRIER)) {
       sprintf(buf + strlen(buf),

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9794) (GTK2) No way to know unit pop_cost for player?, Jason Short <=