summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/grdc/grdc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/games/grdc/grdc.c b/games/grdc/grdc.c
index 1c79c8c..d27b10e 100644
--- a/games/grdc/grdc.c
+++ b/games/grdc/grdc.c
@@ -149,8 +149,12 @@ int t12;
if (tm->tm_hour > 12) {
tm->tm_hour -= 12;
mvaddstr(YBASE + 5, XBASE + 52, "PM");
- } else
+ } else {
+ if (tm->tm_hour == 0)
+ tm->tm_hour = 12;
+
mvaddstr(YBASE + 5, XBASE + 52, "AM");
+ }
}
set(tm->tm_hour%10, 20);
OpenPOWER on IntegriCloud