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

Overhaul lifting quality handling #41300

Merged
merged 1 commit into from
Jun 14, 2020

Conversation

kevingranade
Copy link
Member

Summary

SUMMARY: None

Purpose of change

Continuing to pick away at build time issues as surfaced by #41237
This one is an unnecessary inclusion of units.h in game_constants.h, which is included in many other modules (about a hundred) and is otherwise very lightweight.

Describe the solution

Moved the defines for weights to modules that aren't included and already include units.h
Along the way, I think it slightly improves understandability by hiding the quality number itself.

Describe alternatives you've considered

There's a lot more cleanup and rationalization of this code that could happen, but I'm trying to focus on the build time thing.

Testing

CBA should show some improvement, though game_constants.h and units.h didn't show up at the top of the list.
Verify that vehicle jacking and part lifting is still working as expected.

Removes inclusion of units.h from game_constants.h
@mlangsdorf mlangsdorf added Code: Build Issues regarding different builds and build environments Items / Item Actions / Item Qualities Items and how they work and interact Vehicles Vehicles, parts, mechanics & interactions labels Jun 14, 2020
@ZhilkinSerg ZhilkinSerg merged commit b4aae59 into CleverRaven:master Jun 14, 2020
@kevingranade kevingranade deleted the lift-qual-clean branch June 15, 2020 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code: Build Issues regarding different builds and build environments Items / Item Actions / Item Qualities Items and how they work and interact Vehicles Vehicles, parts, mechanics & interactions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants