aboutsummaryrefslogtreecommitdiff
path: root/taipan.c
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-01-26 06:03:25 -0500
committerB. Watson <yalhcru@gmail.com>2016-01-26 06:03:25 -0500
commit0735321bfc1aadf7e2230df1edc9dd7363978dd6 (patch)
tree4e42d04a9e33ebdcebf2a605f90dc00109201f3e /taipan.c
parent9203bbfed671b809d8c4c8e2d2dabe058b8bc249 (diff)
downloadtaipan-0735321bfc1aadf7e2230df1edc9dd7363978dd6.tar.gz
fix prices not being reset, make cursor less visible
Diffstat (limited to 'taipan.c')
-rw-r--r--taipan.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/taipan.c b/taipan.c
index 246c60e..bb49035 100644
--- a/taipan.c
+++ b/taipan.c
@@ -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;