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

Fixed CFFCrosshairOptions::UpdateSliders assert and did some cleanup #89

Merged
merged 2 commits into from
Dec 15, 2014

Conversation

squeek502
Copy link
Member

No description provided.

@@ -520,7 +523,7 @@ void CFFCrosshairOptions::UpdateCrosshairs()
void CFFCrosshairOptions::UpdateSliders()
{
int iCurrentWeapon = m_pWeapon->GetActiveItem();
Assert(iCurrentWeapon >= 0 && iCurrentWeapon <= FF_WEAPON_TOMMYGUN);
Assert(iCurrentWeapon >= 0 && iCurrentWeapon <= FF_HIT_CROSSHAIR);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this iCurrentWeapon is a bit confusing now - is this actually currentCrosshair ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That m_pWeapon and iCurrentWeapon has always been incorrectly named, as 0 is actually the Global crosshair. I'll do another pass to clean it up some more.

@AfterShockFF
Copy link
Member

Minor suggestion otherwise all good 👍

squeek502 added a commit that referenced this pull request Dec 15, 2014
Fixed CFFCrosshairOptions::UpdateSliders assert and did some cleanup
@squeek502 squeek502 merged commit 800274d into beta Dec 15, 2014
@squeek502 squeek502 deleted the fixes/xhair-option-assert branch December 15, 2014 05:21
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

Successfully merging this pull request may close these issues.

2 participants