src/sprite.h
changeset 8619 c2434269c3eb
parent 8609 8c0c3e9dd6a0
child 9066 29d5a0dfc329
equal deleted inserted replaced
8618:6c3e824e83e4 8619:c2434269c3eb
     2 
     2 
     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 
       
     8 #include "gfx_type.h"
     7 
     9 
     8 #define GENERAL_SPRITE_COLOR(color) ((color) + PALETTE_RECOLOR_START)
    10 #define GENERAL_SPRITE_COLOR(color) ((color) + PALETTE_RECOLOR_START)
     9 #define PLAYER_SPRITE_COLOR(owner) (GENERAL_SPRITE_COLOR(_player_colors[owner]))
    11 #define PLAYER_SPRITE_COLOR(owner) (GENERAL_SPRITE_COLOR(_player_colors[owner]))
    10 
    12 
    11 /**
    13 /**