src/sprite.h
changeset 10207 c291a21b304e
parent 10032 1f6c6f3bea28
child 10233 ac41e2898d9b
equal deleted inserted replaced
10206:0050610c0368 10207:c291a21b304e
     6 #define SPRITE_H
     6 #define SPRITE_H
     7 
     7 
     8 #include "gfx_type.h"
     8 #include "gfx_type.h"
     9 
     9 
    10 #define GENERAL_SPRITE_COLOR(color) ((color) + PALETTE_RECOLOR_START)
    10 #define GENERAL_SPRITE_COLOR(color) ((color) + PALETTE_RECOLOR_START)
    11 #define PLAYER_SPRITE_COLOR(owner) (GENERAL_SPRITE_COLOR(_player_colors[owner]))
    11 #define COMPANY_SPRITE_COLOR(owner) (GENERAL_SPRITE_COLOR(_company_colours[owner]))
    12 
    12 
    13 /**
    13 /**
    14  * Whether a sprite comes from the original graphics files or a new grf file
    14  * Whether a sprite comes from the original graphics files or a new grf file
    15  * (either supplied by OpenTTD or supplied by the user).
    15  * (either supplied by OpenTTD or supplied by the user).
    16  *
    16  *