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 unmountable turret bug #39552

Merged
merged 3 commits into from
Apr 14, 2020

Conversation

OddSkollar
Copy link
Contributor

@OddSkollar OddSkollar commented Apr 14, 2020

Summary

SUMMARY: Bugfixes "Players unable to mount turrets on vehicles."

Purpose of change

Fixes #39436

Describe the solution

Very small change to item::allow_crafting_component(); prior to fix it was incorrectly registering guns themselves as contained objects, preventing eligibility for mounting.

Describe alternatives you've considered

None, I want to play with my new ballista.

Testing

image

Additional context

I only found the bug's location, Korg provided the code.

Fix bug preventing turrets from being mounted by players. I only found the bug's location, Korg provided the code.
add whitespace
@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` Vehicles Vehicles, parts, mechanics & interactions labels Apr 14, 2020
src/item.cpp Outdated Show resolved Hide resolved
@ZhilkinSerg ZhilkinSerg merged commit e397b56 into CleverRaven:master Apr 14, 2020
@OddSkollar
Copy link
Contributor Author

Sorry, I have very little idea of what Travis/CI does or why it's angry, will have to figure that out in the morning.

I also don't know how to attach labels and apologize for that additional overhead.

@kevingranade
Copy link
Member

This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there:

https://discourse.cataclysmdda.org/t/mods-unleashed-compilation-for-e-v-1-0-experimental-v-0-01/22725/97

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` Vehicles Vehicles, parts, mechanics & interactions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot install weapon in vehicle turrent mount
3 participants