Skip to content

Commit

Permalink
fix code scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
yukani committed Aug 15, 2023
1 parent d4f4c04 commit 9e95885
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/game_sa/Audio/AEAudioUtility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ bool CAEAudioUtility::GetBankAndSoundFromScriptSlotAudioEvent(int32& slot, int32
return false;

if (slot < 2000) {
outBank = gScriptBanksLookup[slot];
outBank = gScriptBanksLookup[slot - 1800];
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion source/game_sa/Audio/hardware/AEAudioHardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ bool CAEAudioHardware::Initialise() {
return false;
}

CoInitialize(nullptr);
VERIFY(SUCCEEDED(CoInitialize(nullptr)));

// TODO: We need EAX headers here.
//
Expand Down
3 changes: 2 additions & 1 deletion source/game_sa/Audio/managers/AEAmbienceTrackManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void CAEAmbienceTrackManager::InjectHooks() {
RH_ScopedInstall(IsAmbienceRadioActive, 0x4D6D40);
RH_ScopedInstall(PlaySpecialMissionAmbienceTrack, 0x4D6D50);
RH_ScopedInstall(StopSpecialMissionAmbienceTrack, 0x4D6D60);
RH_ScopedInstall(UpdateAmbienceTrackAndVolume, 0x4D6E60, { .reversed = false });
RH_ScopedInstall(UpdateAmbienceTrackAndVolume, 0x4D6E60, { .reversed = true });
RH_ScopedInstall(Service, 0x4D76C0);
}

Expand Down Expand Up @@ -231,6 +231,7 @@ void CAEAmbienceTrackManager::UpdateAmbienceTrackAndVolume() {
break;
case 62:
m_AmbienceRadioStation = RADIO_TALK;
break;
case 64:
specialTrackId = 151;
break;
Expand Down
1 change: 0 additions & 1 deletion source/game_sa/Scripts/Commands/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ void notsa::script::commands::player::RegisterHandlers() {
REGISTER_COMMAND_UNIMPLEMENTED(COMMAND_SET_GANG_PLAYER_ATTITUDE);
REGISTER_COMMAND_UNIMPLEMENTED(COMMAND_IS_PLAYER_IN_REMOTE_MODE);
REGISTER_COMMAND_UNIMPLEMENTED(COMMAND_SET_ANIM_GROUP_FOR_PLAYER);
REGISTER_COMMAND_UNIMPLEMENTED(COMMAND_RESET_NUM_OF_MODELS_KILLED_BY_PLAYER);
REGISTER_COMMAND_UNIMPLEMENTED(COMMAND_GET_NUM_OF_MODELS_KILLED_BY_PLAYER);
REGISTER_COMMAND_UNIMPLEMENTED(COMMAND_SET_CAR_ONLY_DAMAGED_BY_PLAYER);
//REGISTER_COMMAND_UNIMPLEMENTED(COMMAND_SET_PLAYER_NEVER_GETS_TIRED);
Expand Down

0 comments on commit 9e95885

Please sign in to comment.