chore: Renamed ptr_to_handle & some small refactoring (#632)

This commit is contained in:
Aure7138
2022-11-23 06:12:40 +08:00
committed by GitHub
parent 64b47779e8
commit d0b523873d
5 changed files with 15 additions and 18 deletions

View File

@ -22,7 +22,10 @@ namespace big
if (ImGui::Checkbox("Bypass C4 Limit", &g->weapons.bypass_c4_limit))
{
*g_pointers->m_bypass_max_count_of_active_sticky_bombs = g->weapons.bypass_c4_limit ? 99 : 4;
if (g->weapons.bypass_c4_limit)
g_pointers->m_bypass_max_count_of_active_sticky_bombs->apply();
else
g_pointers->m_bypass_max_count_of_active_sticky_bombs->restore();
}
eAmmoSpecialType selected_ammo = g->weapons.ammo_special.type;