summaryrefslogtreecommitdiff
path: root/src/industry_map.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-21 22:50:51 +0000
committerrubidium <rubidium@openttd.org>2007-12-21 22:50:51 +0000
commit6a9e77e0796a62a62e95ba5870f26b51a6b66c77 (patch)
tree92a4b604ccb6ae352038348f78b52b1f91cfd691 /src/industry_map.h
parent1b53dbf9cc91f99db84a81c1f7cfa4ed8a6a7779 (diff)
downloadopenttd-6a9e77e0796a62a62e95ba5870f26b51a6b66c77.tar.xz
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
Diffstat (limited to 'src/industry_map.h')
-rw-r--r--src/industry_map.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/industry_map.h b/src/industry_map.h
index e7e53e6a5..77cab8920 100644
--- a/src/industry_map.h
+++ b/src/industry_map.h
@@ -156,11 +156,12 @@ static inline void SetIndustryGfx(TileIndex t, IndustryGfx gfx)
/**
* Make the given tile an industry tile
- * @param t the tile to make an industry tile
- * @param index the industry this tile belongs to
- * @param gfx the graphics to use for the tile
+ * @param t the tile to make an industry tile
+ * @param index the industry this tile belongs to
+ * @param gfx the graphics to use for the tile
+ * @param random the random value
*/
-static inline void MakeIndustry(TileIndex t, IndustryID index, IndustryGfx gfx)
+static inline void MakeIndustry(TileIndex t, IndustryID index, IndustryGfx gfx, uint8 random)
{
SetTileType(t, MP_INDUSTRY);
_m[t].m1 = 0;
@@ -168,7 +169,7 @@ static inline void MakeIndustry(TileIndex t, IndustryID index, IndustryGfx gfx)
_m[t].m3 = 0;
_m[t].m4 = 0;
SetIndustryGfx(t, gfx);
- _me[t].m7 = Random();
+ _me[t].m7 = random;
}
/**