diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-12 19:25:53 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-12 19:25:53 +0800 |
commit | b729272d521985d2656660d2f83a3a29c8f6ec8f (patch) | |
tree | e3e9d4dd1ddf67e5499cab0479d52af52c721264 /include/pttstruct.h | |
parent | 097b557f8d8698c6992a4fdb510f76fd07229b64 (diff) | |
download | pttbbs-b729272d521985d2656660d2f83a3a29c8f6ec8f.tar pttbbs-b729272d521985d2656660d2f83a3a29c8f6ec8f.tar.gz pttbbs-b729272d521985d2656660d2f83a3a29c8f6ec8f.tar.bz2 pttbbs-b729272d521985d2656660d2f83a3a29c8f6ec8f.tar.lz pttbbs-b729272d521985d2656660d2f83a3a29c8f6ec8f.tar.xz pttbbs-b729272d521985d2656660d2f83a3a29c8f6ec8f.tar.zst pttbbs-b729272d521985d2656660d2f83a3a29c8f6ec8f.zip |
GO scoring and displaying on userlist.
!!!NOTE: shared memory changed!!!
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3276 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/pttstruct.h')
-rw-r--r-- | include/pttstruct.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h index 362f3dd0..575dd76d 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -97,7 +97,10 @@ typedef struct userec_t { unsigned short chc_tie; /* 象棋戰績 和 */ int mobile; /* 手機號碼 */ char mind[4]; /* 心情 not a null-terminate string */ - char pad0[11]; /* 從前放 ident 身份證字號,現在可以拿來做別的事了, + unsigned short go_win; /* 圍祺戰績 勝 */ + unsigned short go_lose; /* 圍祺戰績 敗 */ + unsigned short go_tie; /* 圍祺戰績 和 */ + char pad0[5]; /* 從前放 ident 身份證字號,現在可以拿來做別的事了, 不過最好記得要先清成 0 */ unsigned char signature; /* 慣用簽名檔 */ @@ -411,6 +414,9 @@ typedef struct userinfo_t { unsigned short int chc_lose; unsigned short int chc_tie; unsigned short int chess_elo_rating; + unsigned short int go_win; + unsigned short int go_lose; + unsigned short int go_tie; /* misc */ unsigned int withme; @@ -486,7 +492,7 @@ typedef struct keeploc_t { /* MAX_BMs is dirty hardcode 4 in mbbsd/cache.c:is_BM_cache() */ #define MAX_BMs 4 /* for BMcache, 一個看板最多幾板主 */ -#define SHM_VERSION 2582 +#define SHM_VERSION 3276 typedef struct { int version; /* uhash */ @@ -509,7 +515,7 @@ typedef struct { /* utmpshm */ userinfo_t uinfo[USHM_SIZE]; char gap_6[sizeof(userinfo_t)]; - int sorted[2][8][USHM_SIZE]; + int sorted[2][9][USHM_SIZE]; /* 第一維double buffer 由currsorted指向目前使用的 第二維sort type */ char gap_7[sizeof(int)]; |