# HG changeset patch # User John "Elwin" Edwards # Date 1505166402 14400 # Node ID 1bbdd13ec58572273cb5c74adbb2edab84f3f2f3 # Parent 4573b355cdc11cc87004d48703b96b18204c3206 UltraRogue: fix Y2K bug on tombstone. Years were being displayed as "191XX" instead of "20XX". diff -r 4573b355cdc1 -r 1bbdd13ec585 urogue/rip.c --- a/urogue/rip.c Sun Sep 10 21:04:22 2017 -0400 +++ b/urogue/rip.c Mon Sep 11 17:46:42 2017 -0400 @@ -169,7 +169,7 @@ mvaddstr(15, 28 - ((int)(strlen(buf) + 1) / 2), buf); killer = killname(monst,buf); mvaddstr(17, 28 - ((int)(strlen(killer) + 1) / 2), killer); - mvaddstr(18, 28, (sprintf(prbuf, "%2d", lt->tm_year), prbuf)); + mvaddstr(18, 26, (sprintf(prbuf, "%4d", 1900+lt->tm_year), prbuf)); move(LINES - 1, 0); mvaddstr(LINES - 1, 0, retstr);