Author: jtn
Date: Mon Apr  6 10:47:09 2015
New Revision: 28719

URL: http://svn.gna.org/viewcvs/freeciv?rev=28719&view=rev
Log:
Expand header comments for effect_cumulative_min/max().

Modified:
    trunk/common/effects.c

Modified: trunk/common/effects.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/effects.c?rev=28719&r1=28718&r2=28719&view=diff
==============================================================================
--- trunk/common/effects.c      (original)
+++ trunk/common/effects.c      Mon Apr  6 10:47:09 2015
@@ -302,8 +302,11 @@
 }
 
 /****************************************************************************
-  Get the maximum effect value in this ruleset for the universal.
-  Universal can be NULL to get overall max
+  Get the maximum effect value in this ruleset for the universal
+  (that is, the sum of all positive effects clauses that apply specifically
+  to this universal -- this can be an overestimate in the case of
+  mutually exclusive effects).
+  for_uni can be NULL to get max effect value ignoring requirements.
 ****************************************************************************/
 int effect_cumulative_max(enum effect_type type, struct universal *for_uni)
 {
@@ -325,8 +328,11 @@
 }
 
 /****************************************************************************
-  Get the minimum effect value in this ruleset for the universal.
-  Universal can be NULL for the overall minimum
+  Get the minimum effect value in this ruleset for the universal
+  (that is, the sum of all negative effects clauses that apply specifically
+  to this universal -- this can be an overestimate in the case of
+  mutually exclusive effects).
+  for_uni can be NULL to get min effect value ignoring requirements.
 ****************************************************************************/
 int effect_cumulative_min(enum effect_type type, struct universal *for_uni)
 {


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to