diff options
author | shennetsind <ind@henn.et> | 2014-01-12 15:10:55 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-01-12 15:10:55 -0200 |
commit | 8aeb011694ca3023d93dd6e904b3f42ab93f8ba9 (patch) | |
tree | 5fbf3ff907495e0f20c2da650edf37d9f18ce125 /src/map/pc.c | |
parent | ca6454b94bd9e2bcf5ddd9c51bea23d5c2bf6d78 (diff) | |
download | hercules-8aeb011694ca3023d93dd6e904b3f42ab93f8ba9.tar.gz hercules-8aeb011694ca3023d93dd6e904b3f42ab93f8ba9.tar.bz2 hercules-8aeb011694ca3023d93dd6e904b3f42ab93f8ba9.tar.xz hercules-8aeb011694ca3023d93dd6e904b3f42ab93f8ba9.zip |
Two Adjustments
From some notes I took while working on the megapatch:
- Dropped unused char_dat variable in chrif's auth_node
- Fixed DB/BB/PB Logging, which could create false logs due to where it was placed.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index e6ad4e20c..30636f40b 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4343,10 +4343,6 @@ int pc_isUseitem(struct map_session_data *sd,int n) return 0; } - //Dead Branch & Bloody Branch & Porings Box - if( nameid == ITEMID_BRANCH_OF_DEAD_TREE || nameid == ITEMID_BLOODY_DEAD_BRANCH || nameid == ITEMID_PORING_BOX ) - logs->branch(sd); - return 1; } @@ -4456,6 +4452,10 @@ int pc_useitem(struct map_session_data *sd,int n) { } } + //Dead Branch & Bloody Branch & Porings Box + if( nameid == ITEMID_BRANCH_OF_DEAD_TREE || nameid == ITEMID_BLOODY_DEAD_BRANCH || nameid == ITEMID_PORING_BOX ) + logs->branch(sd); + sd->itemid = sd->status.inventory[n].nameid; sd->itemindex = n; if(sd->catch_target_class != -1) //Abort pet catching. |