mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 22:01:30 +00:00
[Bug Fix] Fix recipient sound (vtell) on non-player races (#2066)
* [Bug Fix] Fix recipient sound (vtell) on non-player races * Fix to use BaseRace as intended
This commit is contained in:
parent
5d94c9844a
commit
ccd0713b33
@ -3366,7 +3366,13 @@ bool WorldServer::SendVoiceMacro(Client* From, uint32 Type, char* Target, uint32
|
||||
|
||||
svm->Type = Type;
|
||||
|
||||
svm->Voice = (GetPlayerRaceValue(From->GetRace()) * 2) + From->GetGender();
|
||||
uint16 player_race = GetPlayerRaceValue(From->GetRace());
|
||||
|
||||
if (player_race == PLAYER_RACE_UNKNOWN) {
|
||||
player_race = From->GetBaseRace();
|
||||
}
|
||||
|
||||
svm->Voice = (player_race * 2) + From->GetGender();
|
||||
|
||||
svm->MacroNumber = MacroNumber;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user