Also allow q at the Itemized billing -prompt
Original change via AceHack by Alex Smith
This commit is contained in:
@@ -1349,6 +1349,7 @@ proceed:
|
|||||||
/* now check items on bill */
|
/* now check items on bill */
|
||||||
if (eshkp->billct) {
|
if (eshkp->billct) {
|
||||||
register boolean itemize;
|
register boolean itemize;
|
||||||
|
int iprompt;
|
||||||
umoney = money_cnt(invent);
|
umoney = money_cnt(invent);
|
||||||
if (!umoney && !eshkp->credit) {
|
if (!umoney && !eshkp->credit) {
|
||||||
You("%shave no money or credit%s.",
|
You("%shave no money or credit%s.",
|
||||||
@@ -1366,7 +1367,9 @@ proceed:
|
|||||||
|
|
||||||
/* this isn't quite right; it itemizes without asking if the
|
/* this isn't quite right; it itemizes without asking if the
|
||||||
* single item on the bill is partly used up and partly unpaid */
|
* single item on the bill is partly used up and partly unpaid */
|
||||||
itemize = (eshkp->billct > 1 ? yn("Itemized billing?") == 'y' : 1);
|
iprompt = (eshkp->billct > 1 ? ynq("Itemized billing?") : 'y');
|
||||||
|
itemize = (iprompt == 'y');
|
||||||
|
if (iprompt == 'q') goto thanks;
|
||||||
|
|
||||||
for (pass = 0; pass <= 1; pass++) {
|
for (pass = 0; pass <= 1; pass++) {
|
||||||
tmp = 0;
|
tmp = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user