home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
games
/
volume11
/
vcraps
/
patch1
/
patches01
Wrap
Text File
|
1990-08-28
|
2KB
|
77 lines
*** dist/vcraps.c Thu Aug 23 16:30:41 1990
--- vcraps.c Thu Aug 23 16:25:29 1990
***************
*** 159,168 ****
Update(fullupdate);
bcopy(&Table, &OldTable, (sizeof(CrapsTable_t)));
fullupdate = 0;
! Prompt("Command [12345689abcdfhprtX?]:");
wclear(commandwin);
wrefresh(commandwin);
! c = Getch("12345689abcdfhprtX?", 1);
switch (c) {
case '1':
Prompt("[012]:");
--- 159,168 ----
Update(fullupdate);
bcopy(&Table, &OldTable, (sizeof(CrapsTable_t)));
fullupdate = 0;
! Prompt("Command [12345689abcdfhprt$X?]:");
wclear(commandwin);
wrefresh(commandwin);
! c = Getch("12345689abcdfhprt$X?", 1);
switch (c) {
case '1':
Prompt("[012]:");
***************
*** 870,875 ****
--- 870,878 ----
break;
}
break;
+ case '$':
+ ShowTotal();
+ break;
case 'X':
return (0);
case '?':
***************
*** 1694,1702 ****
addstr("4dc - don't-come odds on 4 4dp - don't place 4\n\n");
addstr("Bets are taken down by typing t followed by one of the\n");
addstr("bet commands above.\n\n");
! addstr("X - Exit program\n");
! addstr(" continue...");
refresh();
getch();
longjmp(LoopEnv, 2);
}
--- 1697,1716 ----
addstr("4dc - don't-come odds on 4 4dp - don't place 4\n\n");
addstr("Bets are taken down by typing t followed by one of the\n");
addstr("bet commands above.\n\n");
! addstr("$ - show total bets X - Exit program\n");
! addstr(" continue...");
refresh();
getch();
longjmp(LoopEnv, 2);
+ }
+
+ ShowTotal()
+ {
+ int i, total = 0;
+ char buf[80];
+
+ for (i = craps_PassLine; i < craps_Bets; ++i)
+ total += Craps_GetBet(&Table, i);
+ sprintf(buf, "Wagers on table total $%d", total);
+ Message(buf);
}
*** /dev/null Fri Aug 24 11:00:03 1990
--- patchlevel.h Fri Aug 24 11:04:33 1990
***************
*** 0 ****
--- 1 ----
+ #define PATCHLEVEL 1