fix unused variable
This commit is contained in:
parent
e9b45d6e40
commit
af0affe662
@ -60,7 +60,7 @@ int main_game_loop(int argc, char *argv[]) {
|
|||||||
char difficulty[32];
|
char difficulty[32];
|
||||||
char message[MAX_MESSAGE] = "";
|
char message[MAX_MESSAGE] = "";
|
||||||
int message_color = COLOR_DEFAULT;
|
int message_color = COLOR_DEFAULT;
|
||||||
int height, width, y_pos;
|
int height, y_pos;
|
||||||
int key;
|
int key;
|
||||||
char temp_guess[WORD_LENGTH + 1];
|
char temp_guess[WORD_LENGTH + 1];
|
||||||
char win_message[MAX_MESSAGE];
|
char win_message[MAX_MESSAGE];
|
||||||
@ -103,7 +103,7 @@ int main_game_loop(int argc, char *argv[]) {
|
|||||||
/* Main game loop */
|
/* Main game loop */
|
||||||
while (1) {
|
while (1) {
|
||||||
clear();
|
clear();
|
||||||
getmaxyx(stdscr, height, width);
|
getmaxyx(stdscr, height, y_pos);
|
||||||
|
|
||||||
y_pos = 1;
|
y_pos = 1;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user