Avoid processing skins every frame.

Processing skins every frame would slow things down unnecessarily, so call
the skin functions only when something changes.
This commit is contained in:
Bill Currie 2012-01-24 10:28:07 +09:00
parent 6df8867d69
commit 4d66fc175a
5 changed files with 16 additions and 13 deletions

View file

@ -81,6 +81,7 @@ typedef struct player_info_s
int bottomcolor;
struct info_key_s *skinname;
struct info_key_s *team;
struct skin_s *skin;
int _topcolor;
int _bottomcolor;