[Freeciv-Dev] quick patch to server/plrhand.c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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;
plrhand.patch
Description: Text document
|
|