Complete.Org: Mailing Lists: Archives: freeciv-dev: May 1999:
[Freeciv-Dev] Corruption Report
Home

[Freeciv-Dev] Corruption Report

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Corruption Report
From: Michael Gastright <gastrig@xxxxxxxxx>
Date: Thu, 20 May 1999 01:51:17 +0000

Greetings,

Thanks all for you help with CVS.  I knew I had seen something about how to
make it work somewhere once before.  Silly me, I didn't check the FAQ!

Here is the cvs diff for adding corruption to the city report.   It is short
and simple.

Thanks,

Michael Gastright

Index: cityrep.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-xaw/cityrep.c,v
retrieving revision 1.4
diff -u -r1.4 cityrep.c
--- cityrep.c   1999/04/26 09:27:38     1.4
+++ cityrep.c   1999/05/20 01:45:12
@@ -187,6 +187,13 @@
   return buf;
 }
 
+static char *cr_entry_corruption(struct city *pcity)
+{
+  static char buf[8];
+  sprintf(buf,"%3d", pcity->corruption);
+  return buf;
+}
+
 /* City report options (which columns get shown)
  * To add a new entry, you should just have to:
  * - add a function like those above
@@ -240,6 +247,8 @@
                                       FUNC_TAG(food) },
   { 0,  3, 1, "", "Pol",              "Pollution",
                                       FUNC_TAG(pollution) },
+  { 0,  3, 1, "", "Cor",              "Corruption",
+                                      FUNC_TAG(corruption) },
   { 1,  0, 1, "Currently Building",   "(Stock,Target,Buy Cost)",
                                       "Currently Building",
                                       FUNC_TAG(building) } 


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