-
Notifications
You must be signed in to change notification settings - Fork 82
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
Defines/Typos #557
Defines/Typos #557
Conversation
Defines do not follow scope rules, but enums do. Enum classes even utilize strong type checking (but i am not sure about compiler support for c++11 on all target platforms).
This method is rarely used, however it returned 0 after adding stuff. It now returns the sum.
x and y is provided by PlayGuiObject::Pos.
Merge cleanup codings style commit as i accidentally used that branch as the base.
for(int w = 0; w < int(abilities.size());w++) | ||
{ | ||
currentAction = (ActionElement*)abilities[w]; | ||
ActionElement *currentAction = (ActionElement*)abilities[w]; |
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.
We use ActionElement* currentAction
or ActionElement * currentAction
Nice changes! I like when the code is getting cleaner. |
These commits get rid of a few define groups and replaces them with enums (in class scopes).
There was also a typo in ActionLayer::receiveEventPlus(...) and two unused variables in Interruptible which are now gone.