diff options
Diffstat (limited to 'taipan.c')
-rw-r--r-- | taipan.c | 33 |
1 files changed, 20 insertions, 13 deletions
@@ -13,6 +13,10 @@ /* define this to show internals of damage calculation */ #define DAMAGE_TEST +/* define this to test the mchenry() routine by entering + damage and capacity numbers directly */ +// #define MCHENRY_TEST + /**** atari-specific stuff */ void atari_text_setup() { @@ -1216,7 +1220,7 @@ void port_stats(void) #else if(port_stat_dirty) { - void *p = PEEK(88) + 256 * PEEK(89); + void *p = (void *)(PEEK(88) + 256 * PEEK(89)); memcpy(p, &port_stat_screen, 640); port_stat_dirty = 0; } @@ -1371,7 +1375,7 @@ void mchenry(void) compradores_report(); cputs("Taipan, Mc Henry from the Hong Kong\r\n"); - cputs("Shipyards has arrived!! He says, 'I see\r\n"); + cputs("Shipyards has arrived!! He says, 'I see\r\n"); cputs("ye've a wee bit of damage to yer ship.'\r\n"); cputs("Will ye be wanting repairs? "); @@ -1498,7 +1502,7 @@ void final_stats(void) cputs("Your Rating:\r\n"); cputs(" _______________________________\r\n"); cputs("|"); - if (cash > 49999) + if (cash > 49999L) { revers(1); } @@ -1506,7 +1510,7 @@ void final_stats(void) revers(0); cputs(" 50,000 and over |\r\n"); cputs("|"); - if ((cash < 50000) && (cash > 7999)) + if ((cash < 50000L) && (cash > 7999L)) { revers(1); } @@ -1514,7 +1518,7 @@ void final_stats(void) revers(0); cputs(" 8,000 to 49,999|\r\n"); cputs("|"); - if ((cash < 8000) && (cash > 999)) + if ((cash < 8000L) && (cash > 999L)) { revers(1); } @@ -2562,16 +2566,19 @@ void debttest() { int main(void) { int choice; - /* +#ifdef MCHENRY_TEST { - int status; - capacity = 60; - damage = 47; - status = 100 - ((damage * 100) / capacity); - cprintulong(status); -hang: goto hang; + while(1) { + clrscr(); + cputs("dmg? "); + damage = get_num(9); + cputs("\r\n"); + cputs("cap? "); + capacity = get_num(9); + mchenry(); + } } - */ +#endif /* _randomize(); |