equal
deleted
inserted
replaced
339 #define CLRBITS(x, y) ((x) &= ~(y)) |
339 #define CLRBITS(x, y) ((x) &= ~(y)) |
340 |
340 |
341 #define GENERAL_SPRITE_COLOR(color) ((color) + PALETTE_RECOLOR_START) |
341 #define GENERAL_SPRITE_COLOR(color) ((color) + PALETTE_RECOLOR_START) |
342 #define PLAYER_SPRITE_COLOR(owner) (GENERAL_SPRITE_COLOR(_player_colors[owner])) |
342 #define PLAYER_SPRITE_COLOR(owner) (GENERAL_SPRITE_COLOR(_player_colors[owner])) |
343 |
343 |
|
344 /** |
|
345 * Whether a sprite comes from the original graphics files or a new grf file |
|
346 * (either supplied by OpenTTD or supplied by the user). |
|
347 * |
|
348 * @param sprite The sprite to check |
|
349 * @return True if it is a new sprite, or false if it is original. |
|
350 */ |
|
351 #define IS_CUSTOM_SPRITE(sprite) ((sprite) >= SPR_SIGNALS_BASE) |
|
352 |
344 extern const byte _ffb_64[128]; |
353 extern const byte _ffb_64[128]; |
345 |
354 |
346 /** |
355 /** |
347 * Returns the first occure of a bit in a 6-bit value (from right). |
356 * Returns the first occure of a bit in a 6-bit value (from right). |
348 * |
357 * |