Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanEgbert committed Mar 14, 2022
1 parent e991912 commit c4287ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/battleship.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ void startGame()
Player player1, player2;
BattleshipPosition battleshipPos;

int x, y = 0, i = 0;
int x, y = 0;
char pos;

initMap(&player1, "map.txt");
Expand Down
2 changes: 1 addition & 1 deletion src/battleship.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ void enterPlayerNamePhase(Player* player1, Player* player2);
void putBattleshipPhase(Player* player1, Player* player2, BattleshipPosition* battleshipPos);
void attackPhase(Player* player1, Player* player2);

void loadHomePage();
void startGame();
void loadHomePage();


#endif

0 comments on commit c4287ac

Please sign in to comment.