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

Part of an if condition can be moved outside of a for loop, optimization. #8

Closed
basro opened this issue Oct 20, 2014 · 0 comments
Closed

Comments

@basro
Copy link

basro commented Oct 20, 2014

This line:

https://github.com/gliptic/liero/blob/master/weapon.cpp#L395

All those can be moved outside of the for loop, no need to check for every worm. I also recommend adapting wormCollide so that it's always true if that expression would be true.

emlai pushed a commit to emlai/liero that referenced this issue Sep 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants