diff options
| author | 2019-10-27 16:48:00 -0400 | |
|---|---|---|
| committer | 2019-10-27 16:48:00 -0400 | |
| commit | 7010781fe755fe0e70b4f1e679b4a8571b02644b (patch) | |
| tree | 58b2c1bc2f22240eb06ed89fd40196c9cac6f9f6 /lib | |
| parent | ada53c1b0d303e420d884e77845a31c9de6dfa12 (diff) | |
| download | cetris-7010781fe755fe0e70b4f1e679b4a8571b02644b.tar.gz cetris-7010781fe755fe0e70b4f1e679b4a8571b02644b.tar.bz2 cetris-7010781fe755fe0e70b4f1e679b4a8571b02644b.zip | |
minor fix in function defintion
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/cetris.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/cetris.h b/lib/cetris.h index 57f2a17..4d654c7 100644 --- a/lib/cetris.h +++ b/lib/cetris.h @@ -57,7 +57,6 @@ enum { enum {
SLOT_OCCUPIED = 1,
- SLOT_GHOST = 1 << 1,
};
enum {
@@ -106,7 +105,7 @@ typedef struct { uint8_t board[CETRIS_BOARD_X][CETRIS_BOARD_Y];
int8_t highest_line;
- // constant queue of all 7 possible tetrimino
+ // queue of all 7 possible tetrimino
uint8_t piece_queue[7];
uint8_t next_queue[7];
uint8_t current_index;
@@ -197,7 +196,7 @@ static void update_board(cetris_game *g); CETRIS_EXPORT void update_game_tick(cetris_game *g);
CETRIS_EXPORT void hold_piece(cetris_game *g);
-CETRIS_EXPORT void init_game(cetris_game *g);
+CETRIS_EXPORT void init_game(cetris_game *g, cetris_config *c);
CETRIS_EXPORT void hold_piece(cetris_game *g);
static void set_piece(uint8_t type, tetrimino* mino) {
|