[CF-Devel] 'Light' question

crossfire-devel at archives.real-time.com crossfire-devel at archives.real-time.com
Fri Feb 13 01:21:46 CST 2004


Nicolas Weeger wrote:
>>
     
      not sure about this particular instance, but there re two
     
     >>
     
      different light values: the glow radius, and the light level.
     
     >>
     
      The light level is something that ranges from "completely
     
     >>
     
      bright" to "completely dark".  Take a walk to the dragon
     
     >>
     
      hatchery to see it in use.
     
     >
     
     
     >
     
      <snip>
     
     >
     
     
     >
     
      No, not the same light value. The global map value is 'darkness' field.
     
     >
     
     
     >
     
      'update_position' will find the highest 'glow_radius' for current 
     
     >
     
      square, and assign it to 'light'. That's why i think the 2 types here 
     
     >
     
      are not coherent :)
     
     >
     
     
     
  The two types aren't coherent.

  However, since the max light value right now is something like 4 or whatever, 
so is no danger in overflowing the smaller value in the map structure.

  The more correct fix for this is to reduce the size of the field in the object 
structure.


_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list