home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / games / volume11 / vcraps / patch1 / patches01
Text File  |  1990-08-28  |  2KB  |  77 lines

  1. *** dist/vcraps.c    Thu Aug 23 16:30:41 1990
  2. --- vcraps.c    Thu Aug 23 16:25:29 1990
  3. ***************
  4. *** 159,168 ****
  5.       Update(fullupdate);
  6.       bcopy(&Table, &OldTable, (sizeof(CrapsTable_t)));
  7.       fullupdate = 0;
  8. !     Prompt("Command [12345689abcdfhprtX?]:");
  9.       wclear(commandwin);
  10.       wrefresh(commandwin);
  11. !     c = Getch("12345689abcdfhprtX?", 1);
  12.       switch (c) {
  13.           case '1':
  14.           Prompt("[012]:");
  15. --- 159,168 ----
  16.       Update(fullupdate);
  17.       bcopy(&Table, &OldTable, (sizeof(CrapsTable_t)));
  18.       fullupdate = 0;
  19. !     Prompt("Command [12345689abcdfhprt$X?]:");
  20.       wclear(commandwin);
  21.       wrefresh(commandwin);
  22. !     c = Getch("12345689abcdfhprt$X?", 1);
  23.       switch (c) {
  24.           case '1':
  25.           Prompt("[012]:");
  26. ***************
  27. *** 870,875 ****
  28. --- 870,878 ----
  29.               break;
  30.           }
  31.           break;
  32. +         case '$':
  33. +         ShowTotal();
  34. +         break;
  35.           case 'X':
  36.           return (0);
  37.           case '?':
  38. ***************
  39. *** 1694,1702 ****
  40.       addstr("4dc - don't-come odds on 4    4dp - don't place 4\n\n");
  41.       addstr("Bets are taken down by typing t followed by one of the\n");
  42.       addstr("bet commands above.\n\n");
  43. !     addstr("X   - Exit program\n");
  44. !     addstr("                                         continue...");
  45.       refresh();
  46.       getch();
  47.       longjmp(LoopEnv, 2);
  48.   }
  49. --- 1697,1716 ----
  50.       addstr("4dc - don't-come odds on 4    4dp - don't place 4\n\n");
  51.       addstr("Bets are taken down by typing t followed by one of the\n");
  52.       addstr("bet commands above.\n\n");
  53. !     addstr("$   - show total bets         X   - Exit program\n");
  54. !     addstr("                                                    continue...");
  55.       refresh();
  56.       getch();
  57.       longjmp(LoopEnv, 2);
  58. + }
  59. + ShowTotal()
  60. + {
  61. +     int i, total = 0;
  62. +     char buf[80];
  63. +     for (i = craps_PassLine; i < craps_Bets; ++i)
  64. +     total += Craps_GetBet(&Table, i);
  65. +     sprintf(buf, "Wagers on table total $%d", total);
  66. +     Message(buf);
  67.   }
  68.  
  69. *** /dev/null    Fri Aug 24 11:00:03 1990
  70. --- patchlevel.h    Fri Aug 24 11:04:33 1990
  71. ***************
  72. *** 0 ****
  73. --- 1 ----
  74. + #define PATCHLEVEL    1
  75.