forked from mirror/OpenTTD
(svn r4092) CodeChange : Named sprites instead of magic numbers plus create/use helper macro/enum for recoloring scheme
This commit is contained in:
3
macros.h
3
macros.h
@@ -67,7 +67,8 @@ static inline int64 BIGMULS(int32 a, int32 b) {
|
||||
#define SETBITS(x,y) ((x) |= (y))
|
||||
#define CLRBITS(x,y) ((x) &= ~(y))
|
||||
|
||||
#define PLAYER_SPRITE_COLOR(owner) ( (_player_colors[owner] + 0x307) << PALETTE_SPRITE_START)
|
||||
#define GENERAL_SPRITE_COLOR(color) ( (color + PALETTE_RECOLOR_START) << PALETTE_SPRITE_START)
|
||||
#define PLAYER_SPRITE_COLOR(owner) ( GENERAL_SPRITE_COLOR(_player_colors[owner]))
|
||||
#define SPRITE_PALETTE(x) ((x) | PALETTE_MODIFIER_COLOR)
|
||||
|
||||
extern const byte _ffb_64[128];
|
||||
|
Reference in New Issue
Block a user