Author: cazfi
Date: Mon Aug 10 18:12:13 2015
New Revision: 29440

URL: http://svn.gna.org/viewcvs/freeciv?rev=29440&view=rev
Log:
Fixed some mapgenerator comments.

Modified:
    branches/S2_6/server/generator/mapgen_topology.c
    branches/S2_6/server/generator/temperature_map.c

Modified: branches/S2_6/server/generator/mapgen_topology.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/generator/mapgen_topology.c?rev=29440&r1=29439&r2=29440&view=diff
==============================================================================
--- branches/S2_6/server/generator/mapgen_topology.c    (original)
+++ branches/S2_6/server/generator/mapgen_topology.c    Mon Aug 10 18:12:13 2015
@@ -63,7 +63,7 @@
 
     /* Otherwise a wrapping map is assumed to be a global planetary map. */
 
-    /* we fold the map to get the base symetries
+    /* we fold the map to get the base symmetries
      *
      * ...... 
      * :c__c:
@@ -280,7 +280,7 @@
 
 /***************************************************************************
   This function sets sizes in a topology-specific way then calls
-  map_init_topology. Set 'autosize' to TRUE if the xsize/ysize should be
+  map_init_topology(). Set 'autosize' to TRUE if the xsize/ysize should be
   calculated.
 ***************************************************************************/
 void generator_init_topology(bool autosize)

Modified: branches/S2_6/server/generator/temperature_map.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/generator/temperature_map.c?rev=29440&r1=29439&r2=29440&view=diff
==============================================================================
--- branches/S2_6/server/generator/temperature_map.c    (original)
+++ branches/S2_6/server/generator/temperature_map.c    Mon Aug 10 18:12:13 2015
@@ -86,7 +86,7 @@
 }
 
 /*****************************************************************
- return true if at last one tile has tt temperature type
+ return true if at least one tile has tt temperature type
 ****************************************************************/
 bool is_temperature_type_near(const struct tile *ptile, temperature_type tt) 
 {
@@ -109,8 +109,8 @@
 }
 
 /***************************************************************************
- * create_tmap initialize the temperature_map
- * if arg is FALSE, create a dumy tmap == map_colattitude
+ * Initialize the temperature_map
+ * if arg is FALSE, create a dummy tmap == map_colatitude
  * to be used if hmap or oceans are not placed gen 2-4
  ***************************************************************************/
 void create_tmap(bool real)
@@ -118,21 +118,22 @@
   int i;
 
   /* if map is defined this is not changed */
-  /* TO DO load if from scenario game with tmap */
+  /* TODO: load if from scenario game with tmap */
   /* to debug, never load a this time */
   fc_assert_ret(NULL == temperature_map);
 
   temperature_map = fc_malloc(sizeof(*temperature_map) * MAP_INDEX_SIZE);
   whole_map_iterate(ptile) {
-     /* the base temperature is equal to base map_colatitude */
+    /* the base temperature is equal to base map_colatitude */
     int t = map_colatitude(ptile);
+
     if (!real) {
       tmap(ptile) = t;
     } else {
-      /* height land can be 30% collest */
+      /* hight land can be 30% cooler */
       float height = - 0.3 * MAX(0, hmap(ptile) - hmap_shore_level) 
          / (hmap_max_level - hmap_shore_level); 
-      /* near ocean temperature can be 15 % more "temperate" */
+      /* near ocean temperature can be 15% more "temperate" */
       float temperate = (0.15 * (map.server.temperature / 100 - t
                                  / MAX_COLATITUDE)
                          * 2 * MIN(50, count_terrain_class_near_tile(ptile,
@@ -145,9 +146,9 @@
     }
   } whole_map_iterate_end;
   /* adjust to get well sizes frequencies */
-  /* Notice: if colatitude is load from a scenario never call adjust has
-             scenario maybe has a odd colatitude ditribution and adjust will
-            brack it */
+  /* Notice: if colatitude is loaded from a scenario never call adjust.
+             Scenario may have an odd colatitude distribution and adjust will
+            break it */
   if (!map.server.alltemperate) {
     adjust_int_map(temperature_map, MAX_COLATITUDE);
   }


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

Reply via email to