diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-10-08 02:52:59 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-10-08 02:52:59 +0800 |
commit | 2017e981ca97528fee34398cdffcebb037a4d944 (patch) | |
tree | 0003c2c9f517f7d5543725b03632828b4a5a1853 | |
parent | 68b60cb8d7601ddafd322184a79cd3e4d11688dd (diff) | |
download | pttbbs-2017e981ca97528fee34398cdffcebb037a4d944.tar pttbbs-2017e981ca97528fee34398cdffcebb037a4d944.tar.gz pttbbs-2017e981ca97528fee34398cdffcebb037a4d944.tar.bz2 pttbbs-2017e981ca97528fee34398cdffcebb037a4d944.tar.lz pttbbs-2017e981ca97528fee34398cdffcebb037a4d944.tar.xz pttbbs-2017e981ca97528fee34398cdffcebb037a4d944.tar.zst pttbbs-2017e981ca97528fee34398cdffcebb037a4d944.zip |
fix last commit, forget to load rating into shm
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2229 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | include/pttstruct.h | 3 | ||||
-rw-r--r-- | mbbsd/mbbsd.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h index edffe721..7fa188e3 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -301,7 +301,8 @@ typedef struct userinfo_t { int friend_online[MAX_FRIEND];/* point到線上好友 utmpshm的位置 */ /* 好友比較的cache 前兩個bit是狀態 */ int reject[MAX_REJECT]; - char pad[4]; + unsigned short int chess_elo_rating; + char pad[2]; int lock; int friendtotal; /* 好友比較的cache 大小 */ char msgcount; diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index ad35eef2..33277405 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -736,6 +736,7 @@ setup_utmp(int mode) uinfo.chc_win = cuser.chc_win; uinfo.chc_lose = cuser.chc_lose; uinfo.chc_tie = cuser.chc_tie; + uinfo.chess_elo_rating = cuser.chess_elo_rating; uinfo.invisible = cuser.invisible % 2; uinfo.pager = cuser.pager % 5; memcpy(uinfo.mind, cuser.mind, 4); |