-
Notifications
You must be signed in to change notification settings - Fork 21
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
Game loop cleanup #245
Game loop cleanup #245
Conversation
This branch has been stale for a bit, so I want to review the changes before asking for review |
@@ -203,7 +193,7 @@ eid PhysicsSystem::RayCastMousePick( | |||
this->last_rayvalid = false; | |||
this->last_entity_hit = 0; | |||
|
|||
CollisionBody* body = static_cast<CollisionBody*>(body_iter->second->getUserPointer()); | |||
auto* body = static_cast<CollisionBody*>(body_iter->second->getUserPointer()); |
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.
Suggestion from code quality tools to use auto since the name of the type is already on the initialization side.
@@ -71,6 +71,8 @@ template <typename ID_T, typename T> class Multiton { | |||
*/ | |||
static void Remove(const ID_T id) { instances.erase(id); } | |||
|
|||
static const std::map<ID_T, T>& Instances() { return instances; } |
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.
Allows better iteration with range-based for loops
The last commit is just whitespace changes, so CI was skipped. I will bypass to merge, unless other changes are requested |
Moved to branch in this repo |
Clang suggested code quality cleanups and general code quality cleanups from experience
Description
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: