diff options
author | tron <tron@openttd.org> | 2005-02-10 12:14:38 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-10 12:14:38 +0000 |
commit | 94c75f33bb896b32866fd062242067d773b0f7b1 (patch) | |
tree | b487a5d141332ab7f42372d6735d5951cc75524e /landscape.c | |
parent | 2a151d93546db1d867a7cc0691a5c0e5973a4b98 (diff) | |
download | openttd-94c75f33bb896b32866fd062242067d773b0f7b1.tar.xz |
(svn r1854) Split GetSpritePtr() into GetSprite() for regular sprites (returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*)
Diffstat (limited to 'landscape.c')
-rw-r--r-- | landscape.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/landscape.c b/landscape.c index 4bd2d78cf..dfcdbe8c2 100644 --- a/landscape.c +++ b/landscape.c @@ -476,7 +476,7 @@ static void GenerateTerrain(int type, int flag) byte direction; r = Random(); - p = GetSpritePtr((((r >> 24) * _genterrain_tbl_1[type]) >> 8) + _genterrain_tbl_2[type] + 4845); + p = GetNonSprite((((r >> 24) * _genterrain_tbl_1[type]) >> 8) + _genterrain_tbl_2[type] + 4845); x = r & MapMaxX(); y = (r >> MapLogX()) & MapMaxY(); |