aboutsummaryrefslogtreecommitdiff
path: root/taipan.c
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-04-28 16:28:39 -0400
committerB. Watson <yalhcru@gmail.com>2021-04-28 16:28:39 -0400
commit682bb2a6174a30578f1dd770ebd3d1f39938bf6c (patch)
tree3b68e0db3510d08d6e1388170d95d620ce9f1f1b /taipan.c
parent5faf0c949468cf72d1dfd0e52369ab2d26760fd7 (diff)
downloadtaipan-682bb2a6174a30578f1dd770ebd3d1f39938bf6c.tar.gz
Fix "3 years and 12 months" bug
Diffstat (limited to 'taipan.c')
-rw-r--r--taipan.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/taipan.c b/taipan.c
index 616a928..1dba7e1 100644
--- a/taipan.c
+++ b/taipan.c
@@ -2010,6 +2010,12 @@ void final_stats(void)
// if (years != 1) cputc_s();
// cputs(" and ");
print_msg(M_spc_and_spc);
+
+ /* if you retire in e.g. december 1870, that's 9 years and 11 months,
+ not 9 years and 12 months. If you retire in january 1866, it should
+ read 1 year and 0 months (not 1 year and 1 month!). */
+ month--;
+
cprintuchar(month);
// cputs(" month");
print_msg(M_spc_month);