diff options
Diffstat (limited to 'taipan.c')
-rw-r--r-- | taipan.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -40,7 +40,7 @@ /* define this to test the mchenry() routine by entering damage and capacity numbers directly */ -// #define MCHENRY_TEST +#define MCHENRY_TEST /* define this to test the cprintfancy_big() routine */ // #define BIGNUM_TEST @@ -1829,6 +1829,9 @@ void mchenry(void) { amount; */ + /* the calculations below can & will overflow, but you'd have to + play a *long* time (like, year 2000 or later), and have a ship + capacity over maybe 10,000. */ br = ((randclamp(60 * (time + 3) / 4) + 25 * (time + 3) / 4) * capacity / 50); repair_price = (br * damage) + 1; @@ -1839,7 +1842,8 @@ void mchenry(void) { // cputs("% damaged.\nWe can fix yer whole ship for "); print_msg(M_percent_damaged); cprintulong(repair_price); - // cputs(",\nor make partial repairs if you wish.\n"); + gotoy(19); /* in case last digit printed at (39, 19) */ + // cputs("\nor make partial repairs if you wish.\n"); print_msg(M_or_partial_repairs); how_much(); // cputs("will ye spend? "); |