Advertisement
Guest User

fix.patch

a guest
Apr 26th, 2014
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.28 KB | None | 0 0
  1. *** retrobreak.c        2014-04-27 01:35:15.328782877 +0200
  2. --- retrobreak.fixed.c  2014-04-27 01:34:57.785449652 +0200
  3. ****************** 353,360 ****
  4.         Game.difficult=1;
  5.         Game.lives = 3;
  6.       Game.status = 1;
  7.       bricks = COLS * 6; // number of bricks
  8. !
  9.         for (i = 0; i <6; i++)
  10.         {
  11.                 for (j = 0; j <16; j++)
  12. --- 353,362 ----
  13.         Game.difficult=1;
  14.         Game.lives = 3;
  15.       Game.status = 1;
  16. +     Game.player_score = 0;
  17.       bricks = COLS * 6; // number of bricks
  18. !     indexB = 0;
  19. !     k = 0;
  20.         for (i = 0; i <6; i++)
  21.         {
  22.                 for (j = 0; j <16; j++)
  23. ****************** 363,369 ****
  24.                         Brick[indexB].y=i*BRICK_HEIGHT;
  25.                         Brick[indexB].w=BRICK_WIDTH;
  26.                         Brick[indexB].h=BRICK_HEIGHT;
  27. !                       Brick[indexB].color=k;
  28.                         indexB++;
  29.                 }
  30.        k++;
  31. --- 365,372 ----
  32.                         Brick[indexB].y=i*BRICK_HEIGHT;
  33.                         Brick[indexB].w=BRICK_WIDTH;
  34.                         Brick[indexB].h=BRICK_HEIGHT;
  35. !                       Brick[indexB].color=k;
  36. !                       Brick[indexB].hit=0;
  37.                         indexB++;
  38.                 }
  39.        k++;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement