Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix client issue with stacks not updated correctly in containers #648

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/docs.polserver.com/pol100/corechanges.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
<ESCRIPT>
<header>
<topic>Latest Core Changes</topic>
<datemodified>05-13-2024</datemodified>
<datemodified>05-15-2024</datemodified>
</header>
<version name="POL100.2.0">
<entry>
<date>05-15-2024</date>
<author>Kevin:</author>
<change type="Fixed">Client is now properly updated when adding a stack to a container which contains a matching<br/>
stack (a regression introduced in previous core change)</change>
</entry>
<entry>
<date>05-13-2024</date>
<author>Kevin:</author>
Expand Down
3 changes: 3 additions & 0 deletions pol-core/doc/core-changes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
-- POL100.2.0 --
05-15-2024 Kevin:
Fixed: Client is now properly updated when adding a stack to a container which contains a matching
stack (a regression introduced in previous core change)
05-13-2024 Kevin:
Added: container.held_weight_multiplier, item descriptor HeldWeightMultiplier to dynamically
modify a container's held weight. For example, on a backpack (having weight 3 stones) that
Expand Down
1 change: 1 addition & 0 deletions pol-core/pol/dropitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ bool drop_item_on_object( Network::Client* client, Items::Item* item, u32 target
return true;
u16 amtadded = item->getamount();
exitem->add_to_self( item );
update_item_to_inrange( exitem );
exitem->increv_send_object_recursive();

cont->on_insert_increase_stack( client->chr, UContainer::MT_PLAYER, exitem, amtadded );
Expand Down
Loading