From 031cbc6eb23bf5b58f0b3c3cba5ed26cc52cf58e Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 15 Mar 2019 15:58:29 -0400 Subject: Simplify Cards constants --- cards.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'cards.h') diff --git a/cards.h b/cards.h index 0308cdf..2ce85a9 100644 --- a/cards.h +++ b/cards.h @@ -23,10 +23,8 @@ enum { Cards_Width = 71, Cards_Height = 96, -}; -enum Cards_Card { - Cards_Club, + Cards_Club = 0, Cards_Diamond = 13, Cards_Heart = 26, Cards_Spade = 39, @@ -43,11 +41,11 @@ enum Cards_Card { Cards_X = 67, Cards_O, - Cards_CardLen, + Cards_Count, }; struct Cards { - struct SDL_Surface *surfaces[Cards_CardLen]; + struct SDL_Surface *surfaces[Cards_Count]; }; struct Cards *Cards_Load(struct SDL_RWops *rw); -- cgit 1.4.1