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 the ENCUMBRANCE_UPDATE flag again: #36503

Merged
merged 2 commits into from
Dec 28, 2019
Merged

Conversation

BevapDin
Copy link
Contributor

SUMMARY: None

Turns out the flag is added to all containers when they change their content. For example: you have two identical 60l tanks (they appear as one stack in the game UI). Now fill one with some liquid and unload it again. That tank will now have the ENCUMBRANCE_UPDATE flag. And the other doesn't, so they don't stack anymore. And the tank is not worn, so the code that checks for the flag and removes it is not run for the item. It essentially keeps the flag forever.

This means:
- it's ignored when comparing items (items with the flag stack together with items that don't have the flag),
- it's not saved, it's temporary anyway.
@curstwist curstwist added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` labels Dec 28, 2019
@ZhilkinSerg ZhilkinSerg merged commit 47b63e3 into CleverRaven:master Dec 28, 2019
@BevapDin BevapDin deleted the buh branch December 28, 2019 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants