diff options
author | frosch <frosch@openttd.org> | 2010-01-17 01:01:56 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-01-17 01:01:56 +0000 |
commit | d9d75c83d5b0839d335db453b4482fcaf306bac7 (patch) | |
tree | ad207b20db255982fe6d12d77b480c3d918ad5be /src/sprite.cpp | |
parent | 707cf045f8703700887757ecfa4e309b61e2fd4f (diff) | |
download | openttd-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/sprite.cpp')
-rw-r--r-- | src/sprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sprite.cpp b/src/sprite.cpp index 574cc1d31..5dd7d7f00 100644 --- a/src/sprite.cpp +++ b/src/sprite.cpp @@ -36,7 +36,7 @@ void DrawCommonTileSeq(const TileInfo *ti, const DrawTileSprites *dts, Transpare /* Stop drawing sprite sequence once we meet a sprite that doesn't have to be opaque */ if (IsInvisibilitySet(to) && !HasBit(image, SPRITE_MODIFIER_OPAQUE)) return; - if (newgrf_offset == 0 || HasBit(image, SPRITE_MODIFIER_USE_OFFSET)) { + if (newgrf_offset == 0 || !HasBit(image, SPRITE_MODIFIER_CUSTOM_SPRITE)) { image += orig_offset; } else { image += newgrf_offset; @@ -75,7 +75,7 @@ void DrawCommonTileSeqInGUI(int x, int y, const DrawTileSprites *dts, int32 orig foreach_draw_tile_seq(dtss, dts->seq) { SpriteID image = dtss->image.sprite; - if (newgrf_offset == 0 || HasBit(image, SPRITE_MODIFIER_USE_OFFSET)) { + if (newgrf_offset == 0 || !HasBit(image, SPRITE_MODIFIER_CUSTOM_SPRITE)) { image += orig_offset; } else { image += newgrf_offset; |