Refactor PlaySfxLoc to take a Point instead of x/y params

Because of the heavy usage of this function in objects.cpp and the mixed use of aliases and direct references to the active object in Operate*Door functions I've done some refactoring of those areas beyond what is strictly necessary. Hopefully this makes sense and is reasonable to include in this change.
This commit is contained in:
ephphatha 2021-06-07 00:01:14 +10:00 committed by Anders Jenbo
commit f4f6a8a51e
9 changed files with 150 additions and 159 deletions

View file

@ -243,7 +243,7 @@ void CheckQuests()
&& nummonsters == 4
&& quests[Q_PWATER]._qactive != QUEST_DONE) {
quests[Q_PWATER]._qactive = QUEST_DONE;
PlaySfxLoc(IS_QUESTDN, plr[myplr].position.tile.x, plr[myplr].position.tile.y);
PlaySfxLoc(IS_QUESTDN, plr[myplr].position.tile);
LoadPalette("Levels\\L3Data\\L3pwater.pal", false);
UpdatePWaterPalette();
WaterDone = 32;