Updated for negative wager (requires next alpha)
This commit is contained in:
parent
fde7a102de
commit
34bd05d88e
|
@ -15,13 +15,14 @@
|
||||||
// - Added Top 10 list
|
// - Added Top 10 list
|
||||||
// - Added command line option RESET to reset scores
|
// - Added command line option RESET to reset scores
|
||||||
// - Added command line option TOP10 to show top 10 and exit
|
// - Added command line option TOP10 to show top 10 and exit
|
||||||
|
// - No longer allows negative numbers to be a Wager.
|
||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
|
|
||||||
Uses
|
Uses
|
||||||
User;
|
User;
|
||||||
|
|
||||||
Const
|
Const
|
||||||
Version = '1.3';
|
Version = '1.4';
|
||||||
CashStart = 1000;
|
CashStart = 1000;
|
||||||
CardJack = 11;
|
CardJack = 11;
|
||||||
CardQueen = 12;
|
CardQueen = 12;
|
||||||
|
@ -403,7 +404,7 @@ Begin
|
||||||
|
|
||||||
Write('|17');
|
Write('|17');
|
||||||
|
|
||||||
Wager := Str2Int(Input(10, 10, 1, ''));
|
Wager := Abs(Str2Int(Input(10, 10, 1, '')));
|
||||||
|
|
||||||
If Wager > Player.Cash Then Wager := 0;
|
If Wager > Player.Cash Then Wager := 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue