summaryrefslogtreecommitdiff
path: root/clear_map.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-04-04 21:35:13 +0000
committertron <tron@openttd.org>2006-04-04 21:35:13 +0000
commitaa5777c8748774237271907dab51c058d3b1c82c (patch)
tree8fd9a06aeed0593b1ea4c6f859fd0e7ce9f86442 /clear_map.h
parent6ead57890c50758d2fe06f701e76fdbdae445b96 (diff)
downloadopenttd-aa5777c8748774237271907dab51c058d3b1c82c.tar.xz
(svn r4279) s/\<CL_/CLEAR_/
Diffstat (limited to 'clear_map.h')
-rw-r--r--clear_map.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/clear_map.h b/clear_map.h
index 655b0ef06..5769443a1 100644
--- a/clear_map.h
+++ b/clear_map.h
@@ -10,12 +10,12 @@
* valid densities (bits 0...1) in comments after the enum
*/
typedef enum ClearGround {
- CL_GRASS = 0, // 0-3
- CL_ROUGH = 1, // 3
- CL_ROCKS = 2, // 3
- CL_FIELDS = 3, // 3
- CL_SNOW = 4, // 0-3
- CL_DESERT = 5 // 1,3
+ CLEAR_GRASS = 0, // 0-3
+ CLEAR_ROUGH = 1, // 3
+ CLEAR_ROCKS = 2, // 3
+ CLEAR_FIELDS = 3, // 3
+ CLEAR_SNOW = 4, // 0-3
+ CLEAR_DESERT = 5 // 1,3
} ClearGround;
@@ -73,13 +73,13 @@ static inline void SetClearGroundDensity(TileIndex t, ClearGround type, uint den
static inline uint GetFieldType(TileIndex t)
{
- assert(GetClearGround(t) == CL_FIELDS);
+ assert(GetClearGround(t) == CLEAR_FIELDS);
return GB(_m[t].m3, 0, 4);
}
static inline void SetFieldType(TileIndex t, uint f)
{
- assert(GetClearGround(t) == CL_FIELDS); // XXX incomplete
+ assert(GetClearGround(t) == CLEAR_FIELDS); // XXX incomplete
SB(_m[t].m3, 0, 4, f);
}
@@ -128,7 +128,7 @@ static inline void MakeField(TileIndex t, uint field_type)
_m[t].m2 = 0;
_m[t].m3 = field_type;
_m[t].m4 = 0 << 5 | 0 << 2;
- SetClearGroundDensity(t, CL_FIELDS, 3);
+ SetClearGroundDensity(t, CLEAR_FIELDS, 3);
}
#endif