aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-03-06 06:10:55 -0500
committerB. Watson <yalhcru@gmail.com>2016-03-06 06:10:55 -0500
commita530a134ef024a3bf53d0c79c03adca095e00168 (patch)
treeae3327448877ae96b36c262bb9ed0e4dcd4aafca
parentf4fa06b8f4cff043c53958bead2410ab0a417403 (diff)
downloadtaipan-a530a134ef024a3bf53d0c79c03adca095e00168.tar.gz
fix int wraparound causing ridiculously high repair prices later in the game
-rw-r--r--taipan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/taipan.c b/taipan.c
index 2ba23b9..a027750 100644
--- a/taipan.c
+++ b/taipan.c
@@ -1817,7 +1817,7 @@ void mchenry(void) {
print_msg(M_mchenry_has_arrived);
if(yngetc('y') == 'y') {
- static int percent, time;
+ static unsigned int percent, time;
static unsigned long br, repair_price, amount;
percent = (damage * 100L / capacity);
time = get_time();