-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Auto stack fix #2955
Auto stack fix #2955
Conversation
tested and working like a charm, I can select any stack in the container to move the item to and it wont always chose the first slot |
For a reason i forget i did it differently:
|
@cristofermartins your code does not consider if itemFromIndex is a cylinder (container) which happens here: forgottenserver/src/container.cpp Lines 446 to 451 in 5a8f50b
|
Yeah but no bug will happens since equals won't match the id and moving the item direct to the backpack so it will move inside the backpack stills works. |
@cristofermartins thats nice, also it does ignore the flag "ignoreautostack" |
The code i posted happens below the autostack flag is checked:
|
@cristofermartins oh I see, so you wrote a bunch of redundant code imo. You have all these things you wrote before that autoStack check and you can just check the destItem variable. |
Yeah i think its redundant as you said. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems correct, I tried it and it works, if someone else can confirm it it would be much better.
Fix #2954