Closed osuphobia closed 1 day ago
Could you please also check if it fixes #77971 and/or #74994?
Could you please also check if it fixes #77971 and/or #74994?
I do not have a proper environment to test it right now, but this patch itself is not likely to solve the issues above.
While it's easy to add trait_flag_cache.clear()
somewhere to refresh the trait_flag_cache
when needed, for the enchantments I have not dug enough to see what to change.
While it works for bio_blindfold
, Debug Clairvoyance Super
is still not loaded correctly after a save & load cycle.
Maybe I should refresh the caches in Character::load
?
But there are too many redundants in mutation & bionic calculations, it needs to be done in a thorough audit.
Summary
Bugfixes "Fix
bio_blindfold
not working correctly after a save & load cycle"Purpose of change
Fix #77522
Describe the solution
https://github.com/CleverRaven/Cataclysm-DDA/blob/3a0d074afb601a3d261a4823bf3611d2c5bd584c/src/character.cpp#L627-L633 Add
trait_flag_cache.clear()
andbio_flag_cache.clear()
here.Describe alternatives you've considered
Save
trait_flag_cache
andbio_flag_cache
in savedata?Testing
Compiled and tested locally.
Additional context
I'm not confident with this patch, sight calculation is really a mess.