diff options
author | maedhros <maedhros@openttd.org> | 2007-09-23 10:54:11 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-09-23 10:54:11 +0000 |
commit | df037346744ea57204017e296625fb04fb17a726 (patch) | |
tree | acfb9d1a4a5694532b029ba078a61a9d00c8a921 /src/macros.h | |
parent | aec2d03c72ab1f775820c8ba554c9767ba508abe (diff) | |
download | openttd-df037346744ea57204017e296625fb04fb17a726.tar.xz |
(svn r11149) -Fix [FS#1225]: Draw building stages for new house ground sprites.
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h index 4ff23c1df..924276907 100644 --- a/src/macros.h +++ b/src/macros.h @@ -341,6 +341,15 @@ template<typename T> static inline T TOGGLEBIT(T& x, int y) #define GENERAL_SPRITE_COLOR(color) ((color) + PALETTE_RECOLOR_START) #define PLAYER_SPRITE_COLOR(owner) (GENERAL_SPRITE_COLOR(_player_colors[owner])) +/** + * Whether a sprite comes from the original graphics files or a new grf file + * (either supplied by OpenTTD or supplied by the user). + * + * @param sprite The sprite to check + * @return True if it is a new sprite, or false if it is original. + */ +#define IS_CUSTOM_SPRITE(sprite) ((sprite) >= SPR_SIGNALS_BASE) + extern const byte _ffb_64[128]; /** |