diff --git a/src/game.cpp b/src/game.cpp index de253e3..88ce254 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -573,7 +573,7 @@ void Game::ShowPage() } #endif Ui::EditAddress(TEXT("Game.DaysPassed"), BY_GAME(0xB79038, 0x97F1F4, 0x8F2BB8), 0, 9999); - Ui::EditReference(TEXT("Game.FPSLimit"), RsGlobal.frameLimit, 1, 30, 60); + Ui::EditReference(TEXT("Game.FPSLimit"), RsGlobal.maxFPS, 1, 30, 60); #ifdef GTASA if (ImGui::CollapsingHeader(TEXT("Game.Freecam"))) { diff --git a/src/player.cpp b/src/player.cpp index 469d067..6b2460a 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -419,7 +419,7 @@ void Player::ShowPage() } ImGui::EndDisabled(); #endif - Ui::CheckboxAddress(TEXT("Player.FreeHealthcare"), (int)&pInfo->m_bFreeHealthCare); + Ui::CheckboxAddress(TEXT("Player.FreeHealthcare"), (int)&pInfo->m_bGetOutOfHospitalFree); if (Ui::CheckboxWithHint(TEXT("Player.FreezeWL"), &m_bFreezeWantedLevel)) { diff --git a/src/teleport.cpp b/src/teleport.cpp index 67c1946..df7789c 100644 --- a/src/teleport.cpp +++ b/src/teleport.cpp @@ -24,7 +24,7 @@ void Teleport::FetchRadarSpriteData() for (int i = 0; i != maxSprites; ++i) { CVector pos = CRadar::ms_RadarTrace[i].m_vecPos; - uchar sprite = CRadar::ms_RadarTrace[i].m_nBlipSprite; + uchar sprite = CRadar::ms_RadarTrace[i].m_nRadarSprite; auto sprite_name = m_SpriteJson.m_Data[std::to_string(sprite)].get(); std::string key_name = sprite_name + ", " + Util::GetLocationName(&pos); @@ -97,7 +97,7 @@ void Teleport::TeleportPlayer(bool get_marker, CVector pos, int interior_id) { tRadarTrace targetBlip = CRadar::ms_RadarTrace[LOWORD(FrontEndMenuManager.m_nTargetBlipIndex)]; - if (targetBlip.m_nBlipSprite != RADAR_SPRITE_WAYPOINT) + if (targetBlip.m_nRadarSprite != RADAR_SPRITE_WAYPOINT) { SetHelpMessage(TEXT("Teleport.TargetBlipText")); return; diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 5ca708e..9993f96 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -457,7 +457,7 @@ void Vehicle::SpawnVehicle(const std::string& rootkey, const std::string& vehNam veh->SetOrientation(x, y, z); #endif } - veh->m_nDoorLock = DOORLOCK_UNLOCKED; + veh->m_eDoorLock = DOORLOCK_UNLOCKED; #ifndef GTA3 BY_GAME(veh->m_nAreaCode, veh->m_nAreaCode, NULL) = interior; #endif @@ -733,10 +733,10 @@ void Vehicle::ShowPage() BY_GAME(pVeh->ms_forceVehicleLightsOff, pVeh->m_nVehicleFlags.bLightsOn, pVeh->m_nVehicleFlags.bLightsOn) = state; } - state = pVeh->m_nDoorLock == DOORLOCK_LOCKED_PLAYER_INSIDE; + state = pVeh->m_eDoorLock == DOORLOCK_LOCKED_PLAYER_INSIDE; if (Ui::CheckboxWithHint(TEXT("Vehicle.LockDoor"), &state, nullptr, !is_driver)) { - pVeh->m_nDoorLock = state ? DOORLOCK_LOCKED_PLAYER_INSIDE : DOORLOCK_UNLOCKED; + pVeh->m_eDoorLock = state ? DOORLOCK_LOCKED_PLAYER_INSIDE : DOORLOCK_UNLOCKED; } state = BY_GAME(pVeh->m_nPhysicalFlags.bMeleeProof, pVeh->m_nFlags.bMeleeProof, pVeh->m_nFlags.bMeleeProof); diff --git a/src/weapon.cpp b/src/weapon.cpp index 42197a8..372c358 100644 --- a/src/weapon.cpp +++ b/src/weapon.cpp @@ -28,7 +28,7 @@ void Weapon::Init() #endif - uchar slot = player->m_nCurrentWeapon; + uchar slot = player->m_nActiveWeaponSlot; if (m_nCurrentWeaponSlot != slot) { eWeaponType weaponType = player->m_aWeapons[slot].m_eWeaponType; @@ -229,7 +229,7 @@ void Weapon::ShowPage() float x, y, z; Command(hplayer, 0.0, 3.0, 0.0, &x, &y, &z); - eWeaponType weaponType = pPlayer->m_aWeapons[pPlayer->m_nCurrentWeapon].m_eWeaponType; + eWeaponType weaponType = pPlayer->m_aWeapons[pPlayer->m_nActiveWeaponSlot].m_eWeaponType; if (weaponType) { int model = 0, pickup = 0; @@ -257,7 +257,7 @@ void Weapon::ShowPage() if (ImGui::Button(TEXT("Weapon.DropCurrent"), Ui::GetSize(3))) { #ifdef GTASA - Command(hplayer, pPlayer->m_aWeapons[pPlayer->m_nCurrentWeapon].m_eWeaponType); + Command(hplayer, pPlayer->m_aWeapons[pPlayer->m_nActiveWeaponSlot].m_eWeaponType); #else ClearPlayerWeapon(pPlayer->m_aWeapons[pPlayer->m_nCurrentWeapon].m_eWeaponType); #endif