diff options
author | shennetsind <ind@henn.et> | 2013-09-28 17:55:34 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-09-28 17:55:34 -0300 |
commit | 62e6b7335c9bf0b30d5ca392c0c5dedbe2768dc9 (patch) | |
tree | 004933d5e2d1e4252fc1ac76e8f71ccec8367541 /src/map/chrif.c | |
parent | 871f83f62bf4eb1043bbda182fe0346454686a16 (diff) | |
download | hercules-62e6b7335c9bf0b30d5ca392c0c5dedbe2768dc9.tar.gz hercules-62e6b7335c9bf0b30d5ca392c0c5dedbe2768dc9.tar.bz2 hercules-62e6b7335c9bf0b30d5ca392c0c5dedbe2768dc9.tar.xz hercules-62e6b7335c9bf0b30d5ca392c0c5dedbe2768dc9.zip |
HPM: pc.c Completed
Moved missing vars and declarations of interest into the interface.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 829dc22b9..01af69fbf 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -1076,14 +1076,14 @@ int chrif_recvfamelist(int fd) { int num, size; int total = 0, len = 8; - memset(smith_fame_list, 0, sizeof(smith_fame_list)); - memset(chemist_fame_list, 0, sizeof(chemist_fame_list)); - memset(taekwon_fame_list, 0, sizeof(taekwon_fame_list)); + memset(pc->smith_fame_list, 0, sizeof(pc->smith_fame_list)); + memset(pc->chemist_fame_list, 0, sizeof(pc->chemist_fame_list)); + memset(pc->taekwon_fame_list, 0, sizeof(pc->taekwon_fame_list)); size = RFIFOW(fd, 6); //Blacksmith block size for (num = 0; len < size && num < MAX_FAME_LIST; num++) { - memcpy(&smith_fame_list[num], RFIFOP(fd,len), sizeof(struct fame_list)); + memcpy(&pc->smith_fame_list[num], RFIFOP(fd,len), sizeof(struct fame_list)); len += sizeof(struct fame_list); } @@ -1092,7 +1092,7 @@ int chrif_recvfamelist(int fd) { size = RFIFOW(fd, 4); //Alchemist block size for (num = 0; len < size && num < MAX_FAME_LIST; num++) { - memcpy(&chemist_fame_list[num], RFIFOP(fd,len), sizeof(struct fame_list)); + memcpy(&pc->chemist_fame_list[num], RFIFOP(fd,len), sizeof(struct fame_list)); len += sizeof(struct fame_list); } @@ -1101,7 +1101,7 @@ int chrif_recvfamelist(int fd) { size = RFIFOW(fd, 2); //Total packet length for (num = 0; len < size && num < MAX_FAME_LIST; num++) { - memcpy(&taekwon_fame_list[num], RFIFOP(fd,len), sizeof(struct fame_list)); + memcpy(&pc->taekwon_fame_list[num], RFIFOP(fd,len), sizeof(struct fame_list)); len += sizeof(struct fame_list); } @@ -1119,9 +1119,9 @@ int chrif_updatefamelist_ack(int fd) { uint8 index; switch (RFIFOB(fd,2)) { - case RANKTYPE_BLACKSMITH: list = smith_fame_list; break; - case RANKTYPE_ALCHEMIST: list = chemist_fame_list; break; - case RANKTYPE_TAEKWON: list = taekwon_fame_list; break; + case RANKTYPE_BLACKSMITH: list = pc->smith_fame_list; break; + case RANKTYPE_ALCHEMIST: list = pc->chemist_fame_list; break; + case RANKTYPE_TAEKWON: list = pc->taekwon_fame_list; break; default: return 0; } |