Loading

Paste #plko4pjxx

  1. Index: src/water_map.h
  2. ===================================================================
  3. --- src/water_map.h (revision 27212)
  4. +++ src/water_map.h (working copy)
  5. @@ -16,25 +16,26 @@
  6.  #include "tile_map.h"
  7.  
  8.  /**
  9. - * Bit field layout of m5 for water tiles.
  10. + * Bit field layout for water tiles.
  11.   */
  12.  enum WaterTileTypeBitLayout {
  13. -   WBL_TYPE_BEGIN        = 4,   ///< Start of the 'type' bitfield.
  14. -   WBL_TYPE_COUNT        = 4,   ///< Length of the 'type' bitfield.
  15. +   WBL_TYPE_BEGIN        = 4,   ///< First bit for the structure kind, in m5 bitfield.
  16. +   WBL_TYPE_COUNT        = 4,   ///< Number of bits, for the structure kind, in m5 bitfield.
  17.  
  18. -   WBL_TYPE_NORMAL       = 0x0, ///< Clear water or coast ('type' bitfield).
  19. -   WBL_TYPE_LOCK         = 0x1, ///< Lock ('type' bitfield).
  20. -   WBL_TYPE_DEPOT        = 0x8, ///< Depot ('type' bitfield).
  21. +   WBL_TYPE_NORMAL       = 0x0, ///< Clear water or coast, in m5 (structure kind bitfield).
  22. +   WBL_TYPE_LOCK         = 0x1, ///< Lock, in m5 (structure kind bitfield).
  23. +   WBL_TYPE_DEPOT        = 0x8, ///< Depot, in m5 (structure kind bitfield).
  24.  
  25. -   WBL_COAST_FLAG        = 0,   ///< Flag for coast.
  26. +   WBL_COAST_FLAG        = 0,   ///< Flag for coast, in m5.
  27. +   WBL_RIVER_FLAG        = 0,   ///< Flag for canal on river, in m6.
  28.  
  29. -   WBL_LOCK_ORIENT_BEGIN = 0,   ///< Start of lock orientiation bitfield.
  30. -   WBL_LOCK_ORIENT_COUNT = 2,   ///< Length of lock orientiation bitfield.
  31. -   WBL_LOCK_PART_BEGIN   = 2,   ///< Start of lock part bitfield.
  32. -   WBL_LOCK_PART_COUNT   = 2,   ///< Length of lock part bitfield.
  33. +   WBL_LOCK_ORIENT_BEGIN = 0,   ///< Start of lock orientiation, in m5 bitfield.
  34. +   WBL_LOCK_ORIENT_COUNT = 2,   ///< Length of lock orientiation, in m5 bitfield.
  35. +   WBL_LOCK_PART_BEGIN   = 2,   ///< Start of lock part, in m5 bitfield.
  36. +   WBL_LOCK_PART_COUNT   = 2,   ///< Length of lock part, in m5 bitfield.
  37.  
  38. -   WBL_DEPOT_PART        = 0,   ///< Depot part flag.
  39. -   WBL_DEPOT_AXIS        = 1,   ///< Depot axis flag.
  40. +   WBL_DEPOT_PART        = 0,   ///< Depot part flag, in m5.
  41. +   WBL_DEPOT_AXIS        = 1,   ///< Depot axis flag, in m5.
  42.  };
  43.  
  44.  /** Available water tile types. */

Version history

Revision # Author Created at
p7c0fpuuh Anonymous 28 Mar 2015, 22:11:58 UTC Diff
ptzeplxmx Anonymous 28 Mar 2015, 22:06:45 UTC Diff

Comments