equal
deleted
inserted
replaced
3 /** @file sprite.h */ |
3 /** @file sprite.h */ |
4 |
4 |
5 #ifndef SPRITE_H |
5 #ifndef SPRITE_H |
6 #define SPRITE_H |
6 #define SPRITE_H |
7 |
7 |
|
8 #define GENERAL_SPRITE_COLOR(color) ((color) + PALETTE_RECOLOR_START) |
|
9 #define PLAYER_SPRITE_COLOR(owner) (GENERAL_SPRITE_COLOR(_player_colors[owner])) |
|
10 |
|
11 /** |
|
12 * Whether a sprite comes from the original graphics files or a new grf file |
|
13 * (either supplied by OpenTTD or supplied by the user). |
|
14 * |
|
15 * @param sprite The sprite to check |
|
16 * @return True if it is a new sprite, or false if it is original. |
|
17 */ |
|
18 #define IS_CUSTOM_SPRITE(sprite) ((sprite) >= SPR_SIGNALS_BASE) |
8 |
19 |
9 /* The following describes bunch of sprites to be drawn together in a single 3D |
20 /* The following describes bunch of sprites to be drawn together in a single 3D |
10 * bounding box. Used especially for various multi-sprite buildings (like |
21 * bounding box. Used especially for various multi-sprite buildings (like |
11 * depots or stations): */ |
22 * depots or stations): */ |
12 |
23 |