mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 14:05:45 +01:00
use "const" where able to + random readability changes
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#define COLUMNS ((int8_t)10)
|
||||
#define ROWS ((int8_t)24)
|
||||
|
||||
typedef const Colour8* CRow;
|
||||
typedef const Colour8* const CRow;
|
||||
typedef Colour8* Row;
|
||||
|
||||
typedef struct {
|
||||
@@ -22,5 +22,5 @@ typedef struct {
|
||||
|
||||
void next_shape(GameData* game_data);
|
||||
void game_init(GameData* game_data); // initializes the game
|
||||
void game_update(GameData* game_data, const uint8_t* keys); // updates the game's state
|
||||
void game_update(GameData* game_data, uint8_t const* keys); // updates the game's state
|
||||
void game_free(GameData* game_data); // free all data stored with the game
|
||||
|
||||
Reference in New Issue
Block a user