diff options
author | bapt <bapt@FreeBSD.org> | 2015-06-15 10:56:01 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-06-15 10:56:01 +0000 |
commit | 35a6f0a11cfe0d26a30bdbedec91a5d1f245d073 (patch) | |
tree | 38be19927629e894dac83d7490eda1567d530cb9 /games/grdc/grdc.c | |
parent | 03d84058c3a2a1f69cd43d180104c0cee5dc3920 (diff) | |
parent | 1f7642cc6f9e7a88f2e1524cbafc9b64fcff56f8 (diff) | |
download | FreeBSD-src-35a6f0a11cfe0d26a30bdbedec91a5d1f245d073.zip FreeBSD-src-35a6f0a11cfe0d26a30bdbedec91a5d1f245d073.tar.gz |
Merge from head
Diffstat (limited to 'games/grdc/grdc.c')
-rw-r--r-- | games/grdc/grdc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/games/grdc/grdc.c b/games/grdc/grdc.c index 4632c79..04cc00b 100644 --- a/games/grdc/grdc.c +++ b/games/grdc/grdc.c @@ -150,14 +150,14 @@ main(int argc, char *argv[]) set(tm->tm_min/10, 14); if (t12) { - if (tm->tm_hour > 12) { - tm->tm_hour -= 12; - mvaddstr(YBASE + 5, XBASE + 52, "PM"); - } else { + if (tm->tm_hour < 12) { if (tm->tm_hour == 0) tm->tm_hour = 12; - mvaddstr(YBASE + 5, XBASE + 52, "AM"); + } else { + if (tm->tm_hour > 12) + tm->tm_hour -= 12; + mvaddstr(YBASE + 5, XBASE + 52, "PM"); } } |