diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-04-13 13:04:51 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-04-13 13:04:51 -0700 |
commit | 9b3348a7c707558243caef4b6f4ca08075c36adb (patch) | |
tree | 3f14aeca67acc9639fecbf2ffe50e948b3fd24f7 /src | |
parent | 1abd4980217b2fa98bc07d4b739a9747a6dc1903 (diff) | |
download | tmwa-9b3348a7c707558243caef4b6f4ca08075c36adb.tar.gz tmwa-9b3348a7c707558243caef4b6f4ca08075c36adb.tar.bz2 tmwa-9b3348a7c707558243caef4b6f4ca08075c36adb.tar.xz tmwa-9b3348a7c707558243caef4b6f4ca08075c36adb.zip |
Fix the bug with chest armor
Diffstat (limited to 'src')
-rw-r--r-- | src/char/char.cpp | 4 | ||||
-rw-r--r-- | src/map/pc.cpp | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/char/char.cpp b/src/char/char.cpp index e377ba2..793035c 100644 --- a/src/char/char.cpp +++ b/src/char/char.cpp @@ -814,7 +814,7 @@ int make_new_char(int fd, const uint8_t *dat) char_dat[i].inventory[0].broken = 0; char_dat[i].inventory[1].nameid = start_armor; // Cotton Shirt char_dat[i].inventory[1].amount = 1; - char_dat[i].inventory[1].equip = EPOS::TORSO; + char_dat[i].inventory[1].equip = EPOS::MISC1; char_dat[i].inventory[1].identify = 1; char_dat[i].inventory[1].broken = 0; char_dat[i].weapon = 1; @@ -1109,7 +1109,7 @@ int mmo_char_send006b(int fd, struct char_session_data *sd) WFIFOW(fd, j + 20) = find_equip_view(p, EPOS::SHOES); WFIFOW(fd, j + 22) = find_equip_view(p, EPOS::GLOVES); WFIFOW(fd, j + 24) = find_equip_view(p, EPOS::CAPE); - WFIFOW(fd, j + 26) = find_equip_view(p, EPOS::TORSO); + WFIFOW(fd, j + 26) = find_equip_view(p, EPOS::MISC1); WFIFOL(fd, j + 28) = static_cast<uint16_t>(p->option); WFIFOL(fd, j + 32) = p->karma; diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 232a767..39ac711 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -4628,8 +4628,7 @@ int pc_equipitem(struct map_session_data *sd, int n, EPOS) pos = (epor == EPOS::CAPE ? EPOS::MISC2 : EPOS::CAPE); } - // TODO: make this code do what it's supposed to do, - // instead of what it does +#warning "TODO: make this code do what it's supposed to do, instead of what it does" arrow = pc_search_inventory(sd, pc_checkequip(sd, EPOS::LEGS | EPOS::CAPE)); // Added by RoVeRT for (EQUIP i : EQUIPs) { |