From 2017e981ca97528fee34398cdffcebb037a4d944 Mon Sep 17 00:00:00 2001 From: kcwu Date: Thu, 7 Oct 2004 18:52:59 +0000 Subject: 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 --- include/pttstruct.h | 3 ++- mbbsd/mbbsd.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3