summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-09 05:51:26 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-09 05:51:26 +0800
commit01ae376a8e5736c8b754e85666280ab16f26314f (patch)
treebe742000a3d8e5239822575849176762e1c96f54 /mbbsd
parente28a0fc596acffdfc640501707ba71d3ccd2e17d (diff)
downloadpttbbs-01ae376a8e5736c8b754e85666280ab16f26314f.tar
pttbbs-01ae376a8e5736c8b754e85666280ab16f26314f.tar.gz
pttbbs-01ae376a8e5736c8b754e85666280ab16f26314f.tar.bz2
pttbbs-01ae376a8e5736c8b754e85666280ab16f26314f.tar.lz
pttbbs-01ae376a8e5736c8b754e85666280ab16f26314f.tar.xz
pttbbs-01ae376a8e5736c8b754e85666280ab16f26314f.tar.zst
pttbbs-01ae376a8e5736c8b754e85666280ab16f26314f.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3018 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/chc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/chc.c b/mbbsd/chc.c
index 4daa1c7a..efed0041 100644
--- a/mbbsd/chc.c
+++ b/mbbsd/chc.c
@@ -700,11 +700,11 @@ chcusr_put(userec_t* userec, const ChessUser* user)
static void
chc_init_user(const userinfo_t *uinfo, ChessUser *user)
{
- strlcpy(user->userid, userec->userid, sizeof(user->userid));
- user->win = userec->chc_win;
- user->lose = userec->chc_lose + 1;
- user->tie = userec->chc_tie;
- user->rating = userec->chess_elo_rating;
+ strlcpy(user->userid, uinfo->userid, sizeof(user->userid));
+ user->win = uinfo->chc_win;
+ user->lose = uinfo->chc_lose;
+ user->tie = uinfo->chc_tie;
+ user->rating = uinfo->chess_elo_rating;
if(user->rating == 0)
user->rating = 1500; /* ELO initial value */
user->orig_rating = user->rating;