Remove array initialization with single 0 because of compiler compatibility (espressif8266@2.6.3).
This commit is contained in:
@@ -79,8 +79,8 @@ private:
|
||||
UDPLogger *_logger;
|
||||
uint8_t _gameState = 0;
|
||||
uint8_t _numBots = 0;
|
||||
uint8_t _playerMovement[PLAYER_AMOUNT] = {0};
|
||||
Coords _paddles[PLAYER_AMOUNT][PADDLE_WIDTH] = {0};
|
||||
uint8_t _playerMovement[PLAYER_AMOUNT];
|
||||
Coords _paddles[PLAYER_AMOUNT][PADDLE_WIDTH];
|
||||
Coords _ball = {0, 0};
|
||||
Coords _ball_old = {0, 0};
|
||||
int _ballMovement[2] = {0, 0};
|
||||
|
||||
@@ -76,7 +76,7 @@ private:
|
||||
uint8_t _userDirection = 0;
|
||||
uint8_t _gameState = 0;
|
||||
Coords _head = {0, 0};
|
||||
Coords _tail[MAX_TAIL_LENGTH] = {0};
|
||||
Coords _tail[MAX_TAIL_LENGTH];
|
||||
Coords _food = {0, 0};
|
||||
unsigned long _lastDrawUpdate = 0;
|
||||
unsigned long _lastButtonClick = 0;
|
||||
|
||||
Reference in New Issue
Block a user