~smlavine/ascii-breakout

6ea60a473b4b49b2ed842cefb5dc2a5924da71d6 — Sebastian LaVine 8 months ago a0f2a19
Declare nextX and nextY on the same line
1 files changed, 1 insertions(+), 2 deletions(-)

M main.c
M main.c => main.c +1 -2
@@ 152,8 152,7 @@ int
checkBall(Ball *ball, int *blocksLeft, unsigned int *score, unsigned int frame)
{
	/* The new coordinates of the ball, if it moves successfully. */
	int nextX = (*ball).x,
		nextY = (*ball).y;
	int nextX = (*ball).x, nextY = (*ball).y;


	if (frame % (*ball).xVelocity == 0) {