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 vehicle accessing the main map during mapgen: #34179

Merged
merged 1 commit into from
Sep 22, 2019

Conversation

BevapDin
Copy link
Contributor

SUMMARY: None

Fixes #34028 and fixes #31264.

Add a handler parameter to vehicle::remove_part that handles map interactions (and similar stuff outside the reach of the vehicle).

This handler is different when the function is called during mapgen and interacts with the temporary mapgen map in that case.

@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` Character / World Generation Issues and enhancements concerning stages of creating a character or a world Map / Mapgen Overmap, Mapgen, Map extras, Map display Vehicles Vehicles, parts, mechanics & interactions labels Sep 22, 2019
Add a handler parameter to `vehicle::remove_part` that handles map interactions (and similar stuff outside the reach of the vehicle).

This handler is different when the function is called during mapgen and interacts with the temporary mapgen map in that case.
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` Character / World Generation Issues and enhancements concerning stages of creating a character or a world Map / Mapgen Overmap, Mapgen, Map extras, Map display Vehicles Vehicles, parts, mechanics & interactions
Projects
None yet
2 participants