diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-03-15 11:44:28 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-03-15 11:44:28 -0700 |
commit | f2757bbfd049777f6fa9089bd33e38f80290c039 (patch) | |
tree | 50d3e138efb0c263cc9cae935a179645d19ce54d /src/map/map.hpp | |
parent | 42631b502b3446d71cfe2745045436d9497ee0ed (diff) | |
download | tmwa-f2757bbfd049777f6fa9089bd33e38f80290c039.tar.gz tmwa-f2757bbfd049777f6fa9089bd33e38f80290c039.tar.bz2 tmwa-f2757bbfd049777f6fa9089bd33e38f80290c039.tar.xz tmwa-f2757bbfd049777f6fa9089bd33e38f80290c039.zip |
Split out the keys from character data to have better paging performance
Diffstat (limited to 'src/map/map.hpp')
-rw-r--r-- | src/map/map.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/map.hpp b/src/map/map.hpp index 685feed..ad5adcf 100644 --- a/src/map/map.hpp +++ b/src/map/map.hpp @@ -170,7 +170,8 @@ struct map_session_data : block_list, SessionData int char_id, login_id1, login_id2; SEX sex; unsigned char tmw_version; // tmw client version - struct mmo_charstatus status; + CharKey status_key; + CharData status; struct item_data *inventory_data[MAX_INVENTORY]; earray<short, EQUIP, EQUIP::COUNT> equip_index; int weight, max_weight; @@ -605,7 +606,7 @@ void map_log(XString line); # define MAP_LOG_PC(sd, fmt, ...) \ MAP_LOG("PC%d %s:%d,%d " fmt, \ - sd->status.char_id, (sd->bl_m ? sd->bl_m->name_ : stringish<MapName>("undefined.gat")), sd->bl_x, sd->bl_y, ## __VA_ARGS__) + sd->status_key.char_id, (sd->bl_m ? sd->bl_m->name_ : stringish<MapName>("undefined.gat")), sd->bl_x, sd->bl_y, ## __VA_ARGS__) // 床アイテム関連 void map_clearflooritem_timer(TimerData *, tick_t, int); |