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

Invalidate all levels of map cache on map shift #32827

Merged
merged 2 commits into from
Aug 2, 2019

Conversation

kevingranade
Copy link
Member

@kevingranade kevingranade commented Aug 1, 2019

Summary

SUMMARY: None

Purpose of change

Fixes #29175 again

Solution

The previous PR fixed one cause, but I finally stumbled across another cause of the problem, which occurs due to the map shifting code failing to invalidate the entire map cache.

Testing

Setup:
Locate a building with a roof you can climb onto, ideally one that is isolated.
Spawn a shocker inside the building, ideally shut in a closet or similar.
Climb onto the roof and walk above the area with the shocker.

Expected result:
Nothing happens
Actual Result:
Shocker shocks you through the roof, and you can sometimes see the shocker appear in the threat compass.

Follow-up:
Cross to the other side of the roof and then return.
The shocker no longer shocks you through the roof (because crossing the roof invalidated the appropriate caches).

@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` labels Aug 2, 2019
@ZhilkinSerg ZhilkinSerg merged commit 76dd31e into master Aug 2, 2019
@kevingranade kevingranade deleted the kevingranade-map-shift-fix branch August 12, 2019 23:20
misterprimus pushed a commit to misterprimus/Cataclysm-DDA that referenced this pull request Sep 21, 2019
* Invalidate all levels of map cache on map shift

* typo fixes
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.

Attacks from under ceiling with 3D FOV on.
2 participants