From 9b3348a7c707558243caef4b6f4ca08075c36adb Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 13 Apr 2013 13:04:51 -0700 Subject: Fix the bug with chest armor --- src/char/char.cpp | 4 ++-- src/map/pc.cpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') 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(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) { -- cgit v1.2.3-60-g2f50