patch-game_c 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. $OpenBSD: patch-game_c,v 1.1 2017/05/07 17:46:24 espie Exp $
  2. Index: game.c
  3. --- game.c.orig
  4. +++ game.c
  5. @@ -400,7 +400,7 @@ char *playscreen(int *num, long *score, int *bell, int
  6. #endif
  7. case ':': *score+=1;
  8. move(3,48);
  9. - sprintf(buffer,"%d\t %d",*score,nf);
  10. + sprintf(buffer,"%ld\t %d",*score,nf);
  11. (void) addstr(buffer);
  12. case ' ':
  13. screen[y][x] = ' ';
  14. @@ -431,7 +431,7 @@ char *playscreen(int *num, long *score, int *bell, int
  15. mx = my = -1;
  16. *score+=100;
  17. move(3,48);
  18. - sprintf(buffer,"%d\t %d\t %d ",*score,nf,diamonds);
  19. + sprintf(buffer,"%ld\t %d\t %d ",*score,nf,diamonds);
  20. (void) addstr(buffer);
  21. draw_symbol(50,11,' ');
  22. move(12,56); addstr(" ");
  23. @@ -514,7 +514,7 @@ char *playscreen(int *num, long *score, int *bell, int
  24. mx = my = -1;
  25. *score+=100;
  26. move(3,48);
  27. - sprintf(buffer,"%d\t %d\t %d ",*score,nf,diamonds);
  28. + sprintf(buffer,"%ld\t %d\t %d ",*score,nf,diamonds);
  29. (void) addstr(buffer);
  30. draw_symbol(50,11,' ');
  31. move(12,56); addstr(" ");
  32. @@ -562,7 +562,7 @@ char *playscreen(int *num, long *score, int *bell, int
  33. mx = my = -1;
  34. *score+=100;
  35. move(3,48);
  36. - sprintf(buffer,"%d\t %d\t %d ",*score,nf,diamonds);
  37. + sprintf(buffer,"%ld\t %d\t %d ",*score,nf,diamonds);
  38. (void) addstr(buffer);
  39. draw_symbol(50,11,' ');
  40. move(12,56); addstr(" ");
  41. @@ -636,7 +636,7 @@ char *playscreen(int *num, long *score, int *bell, int
  42. sy = y;
  43. *score += 20;
  44. move(3,48);
  45. - sprintf(buffer,"%d\t %d\t %d ",*score,nf,diamonds);
  46. + sprintf(buffer,"%ld\t %d\t %d ",*score,nf,diamonds);
  47. (void) addstr(buffer);
  48. if(!debug_disp)
  49. display(sx,sy,frow,*score);