Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2001:
[Freeciv-Dev] quick patch to server/plrhand.c
Home

[Freeciv-Dev] quick patch to server/plrhand.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] quick patch to server/plrhand.c
From: Mike Kaufman <mkaufman@xxxxxxxxxxxxxx>
Date: Sat, 10 Mar 2001 23:41:12 -0600 (CST)


the extra tests aren't needed
this is from March 5 snapshot

--mike

--- plrhand.orig.c      Sat Mar 10 23:33:56 2001
+++ plrhand.c   Sat Mar 10 23:34:40 2001
@@ -538,9 +538,7 @@
 
   if (preq->tax+preq->luxury+preq->science!=100)
     return;
-  if (preq->tax<0 || preq->tax >100) return;
-  if (preq->luxury<0 || preq->luxury > 100) return;
-  if (preq->science<0 || preq->science >100) return;
+  if (preq->tax<0 || preq->luxury<0 || preq->science<0) return;
   maxrate=get_government_max_rate (pplayer->government);
   if (preq->tax>maxrate || preq->luxury>maxrate ||
preq->science>maxrate) {
     char *rtype;

Attachment: plrhand.patch
Description: Text document


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