Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 38
Pvs studio fixes#186
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
base:development
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Pvs studio fixes #186
Changes from all commits
4fe54184c7fddc2ac4115d2b0331a348d460a7b5c82183da0c999e67dcd225b15264ab493de37caaed0af685803File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -269,8 +269,6 @@ bool MOSprite::HitTestAtPixel(int pixelX, int pixelY, bool validOnly) const { | ||
| } | ||
| void MOSprite::SetFrame(unsigned int newFrame) { | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pretty sure this is lua accessible so I'd rather this accept | ||
| if (newFrame < 0) | ||
| newFrame = 0; | ||
| if (newFrame >= m_FrameCount) | ||
| newFrame = m_FrameCount - 1; | ||
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.
this also makes hitCount unused
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.
Maybe we should actually return hitcount from Atom travel instead?