summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2013-01-05 00:54:24 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2013-01-05 00:54:24 +0800
commitbb35afbff381706303a22fe6a10dd95b1daf9fb1 (patch)
tree125a3818185fe0ef68056aa39ca78e919170e9a5
parent109cfb556baf4c1be1462c802623c73945e135c1 (diff)
downloadpttbbs-bb35afbff381706303a22fe6a10dd95b1daf9fb1.tar
pttbbs-bb35afbff381706303a22fe6a10dd95b1daf9fb1.tar.gz
pttbbs-bb35afbff381706303a22fe6a10dd95b1daf9fb1.tar.bz2
pttbbs-bb35afbff381706303a22fe6a10dd95b1daf9fb1.tar.lz
pttbbs-bb35afbff381706303a22fe6a10dd95b1daf9fb1.tar.xz
pttbbs-bb35afbff381706303a22fe6a10dd95b1daf9fb1.tar.zst
pttbbs-bb35afbff381706303a22fe6a10dd95b1daf9fb1.zip
Fix chicken birth
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5751 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/chicken.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pttbbs/mbbsd/chicken.c b/pttbbs/mbbsd/chicken.c
index 325b6982..b5cb29ab 100644
--- a/pttbbs/mbbsd/chicken.c
+++ b/pttbbs/mbbsd/chicken.c
@@ -213,14 +213,14 @@ show_chicken_stat(const chicken_t * thechicken, int age)
localtime4_r(&thechicken->birthday, &ptime);
prints("名字: " ANSI_COLOR(33) "%s" ANSI_RESET
" (" ANSI_COLOR(32) "%s" ANSI_RESET ")%*s"
- "生日:" ANSI_COLOR(33) "%02d" ANSI_RESET "年"
- ANSI_COLOR(33) "%2d" ANSI_RESET "月"
- ANSI_COLOR(33) "%2d" ANSI_RESET "日 "
+ "生日:" ANSI_COLOR(33) "%d" ANSI_RESET "年"
+ ANSI_COLOR(33) "%d" ANSI_RESET "月"
+ ANSI_COLOR(33) "%d" ANSI_RESET "日 "
"(" ANSI_COLOR(32) "%s %d歲" ANSI_RESET ")\n",
thechicken->name, chicken_type[(int)thechicken->type],
(int)(30 - strlen(thechicken->name) -
strlen(chicken_type[(int)thechicken->type])),
- "", ptime.tm_year, ptime.tm_mon + 1, ptime.tm_mday,
+ "", ptime.tm_year + 1900, ptime.tm_mon + 1, ptime.tm_mday,
cage[age > 16 ? 16 : age], age);
snprintf(hp_buf, sizeof(hp_buf), "%d / %d", thechicken->hp,