Mercurial > projects > rantaiwarna
comparison board.h @ 3:868670fcc17b
Fix status type
status is used as an int, due to this bug the GAME_OVER_CLEARED flag was lost
and the bonuses for a cleared board was not applied.
author | Guido Berhoerster <guido+rantaiwarna@berhoerster.name> |
---|---|
date | Fri, 24 Oct 2014 17:00:42 +0200 |
parents | a9a7ad180c3b |
children |
comparison
equal
deleted
inserted
replaced
2:08c750f7c4a7 | 3:868670fcc17b |
---|---|
36 uint32_t seed; | 36 uint32_t seed; |
37 int height; | 37 int height; |
38 int width; | 38 int width; |
39 short colors; | 39 short colors; |
40 int32_t score; | 40 int32_t score; |
41 bool status; | 41 int status; |
42 }; | 42 }; |
43 | 43 |
44 struct board_ctx * board_create(int, int, short); | 44 struct board_ctx * board_create(int, int, short); |
45 void board_free(struct board_ctx *); | 45 void board_free(struct board_ctx *); |
46 int board_check_status(struct board_ctx *); | 46 int board_check_status(struct board_ctx *); |