-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Enhancement: Clean up the Stdafx.h usage #989
Enhancement: Clean up the Stdafx.h usage #989
Conversation
Do not use a precompiled header. NOTE: This is the first step for a refactor of the headers. The next step would be to reduce what headers are used in any given implementation or header file.
still trying to figure out the vegasettings crash issue; but this compiles and behaves the same. It's all header changes and just simplifying things. Some testing still needed. |
#include "CSopcodecollider.h" | ||
#include "opcodeqsqrt.h" | ||
#include "opcodeqint.h" | ||
#include "vs_vector.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually just got rid of vs_vector a few days ago in one of my PRs. vs_vector was a mistake from the beginning. It inherits from std::vector, which is not intended to be inherited from. (std::vector doesn't have a virtual destructor.)
vs_vector was only ever used in one place (in this file). It can be replaced with std::vector again, I think. Then if we want to enforce bounds checking (which we probably should) we can change all occurrences of operator[]
to .at()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the expected builds failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have anything to contribute here. It seems pretty straightforward.
I can try and squeeze a quick playthrough to test things, early next week.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Do not use a precompiled header.
NOTE: This is the first step for a refactor of the headers. The next step would be to reduce what headers are used in any given implementation or header file.
Thank you for submitting a pull request and becoming a contributor to the Vega Strike Core Engine.
Please answer the following:
Code Changes:
Issues:
Stdafx.h
? #512Purpose: