diff options
author | B. Watson <yalhcru@gmail.com> | 2016-01-26 06:03:25 -0500 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2016-01-26 06:03:25 -0500 |
commit | 0735321bfc1aadf7e2230df1edc9dd7363978dd6 (patch) | |
tree | 4e42d04a9e33ebdcebf2a605f90dc00109201f3e /taipan.c | |
parent | 9203bbfed671b809d8c4c8e2d2dabe058b8bc249 (diff) | |
download | taipan-0735321bfc1aadf7e2230df1edc9dd7363978dd6.tar.gz |
fix prices not being reset, make cursor less visible
Diffstat (limited to 'taipan.c')
-rw-r--r-- | taipan.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1281,7 +1281,10 @@ unsigned long get_num(void) { num_buf[count] = '\0'; count--; } else if(input == 'a') { - if(!count) return UINT32_MAX; + if(!count) { + cursor(0); + return UINT32_MAX; + } } else if(input == 'k' || input == 'm') { char i; for(i = 0; i < (input == 'k' ? 3 : 6); i++) { @@ -2048,7 +2051,8 @@ void quit(void) timed_getch(TMOUT_3S); - return; + // return; // original code, results in prices not changing. + result = 0; } else { static int num_ships; num_ships = randi()%((capacity / 5) + guns) + 5; |