summaryrefslogtreecommitdiff
path: root/src/newgrf_industrytiles.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-01-17 01:01:56 +0000
committerfrosch <frosch@openttd.org>2010-01-17 01:01:56 +0000
commitd9d75c83d5b0839d335db453b4482fcaf306bac7 (patch)
treead207b20db255982fe6d12d77b480c3d918ad5be /src/newgrf_industrytiles.cpp
parent707cf045f8703700887757ecfa4e309b61e2fd4f (diff)
downloadopenttd-d9d75c83d5b0839d335db453b4482fcaf306bac7.tar.xz
(svn r18842) -Codechange: Rename SPRITE_MODIFIER_USE_OFFSET to SPRITE_MODIFIER_CUSTOM_SPRITE, invert its meaning, and also use it for industry/house layouts instead of IS_CUSTOM_SPRITE().
Diffstat (limited to 'src/newgrf_industrytiles.cpp')
-rw-r--r--src/newgrf_industrytiles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industrytiles.cpp b/src/newgrf_industrytiles.cpp
index 63a555ce5..ac1d3be8e 100644
--- a/src/newgrf_industrytiles.cpp
+++ b/src/newgrf_industrytiles.cpp
@@ -173,7 +173,7 @@ static void IndustryDrawTileLayout(const TileInfo *ti, const TileLayoutSpriteGro
SpriteID image = dts->ground.sprite;
SpriteID pal = dts->ground.pal;
- if (IS_CUSTOM_SPRITE(image)) image += stage;
+ if (HasBit(image, SPRITE_MODIFIER_CUSTOM_SPRITE)) image += stage;
if (GB(image, 0, SPRITE_WIDTH) != 0) {
/* If the ground sprite is the default flat water sprite, draw also canal/river borders