Skip to content

Commit 233190f

Browse files
authored
Fix mouse sensitivity slider value (gta-reversed#1141)
1 parent 6e86642 commit 233190f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/game_sa/Frontend/MenuManager_Draw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ void CMenuManager::DrawStandardMenus(bool drawTitle) {
794794
case MENU_ACTION_RADIO_VOL: processSlider(m_nRadioVolume / 64.f, eMouseInBounds::RADIO_VOL_LEFT, eMouseInBounds::RADIO_VOL_RIGHT, true); break;
795795
case MENU_ACTION_SFX_VOL: processSlider(m_nSfxVolume / 64.f, eMouseInBounds::SFX_VOL_LEFT, eMouseInBounds::SFX_VOL_RIGHT); break;
796796
case MENU_ACTION_DRAW_DIST: processSlider((m_fDrawDistance - 0.925f) / (8.0f / 7.0f), eMouseInBounds::DRAW_DIST_LEFT, eMouseInBounds::DRAW_DIST_RIGHT); break;
797-
case MENU_ACTION_MOUSE_SENS: processSlider(CCamera::m_fMouseAccelHorzntl * (1.0f / 200.0f), eMouseInBounds::MOUSE_SENS_LEFT, eMouseInBounds::MOUSE_SENS_RIGHT); break;
797+
case MENU_ACTION_MOUSE_SENS: processSlider(CCamera::m_fMouseAccelHorzntl / 0.005f, eMouseInBounds::MOUSE_SENS_LEFT, eMouseInBounds::MOUSE_SENS_RIGHT); break;
798798
default: break;
799799
}
800800

source/game_sa/HudColours.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void CHudColours::SetRGBAValue(eHudColours colorIndex, uint8 red, uint8 green, u
4848
// Get color from color table as integer value. "color" parameter - index of color in the table.
4949
// 0x58FD50
5050
uint32 CHudColours::GetIntColour(eHudColours colorIndex) const {
51-
return m_aColours[colorIndex].ToIntARGB();
51+
return m_aColours[colorIndex].ToInt();
5252
}
5353

5454
// Get color RGB and set alpha manually. "color" parameter - index of color in the table.

0 commit comments

Comments
 (0)