MCPcopy Create free account
hub / github.com/diasurgical/devilution / PlaySfxLoc

Function PlaySfxLoc

Source/effects.cpp:1128–1141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1126}
1127
1128void PlaySfxLoc(int psfx, int x, int y)
1129{
1130 TSnd *pSnd;
1131
1132 psfx = RndSFX(psfx);
1133
1134 if (psfx >= 0 && psfx <= 3) {
1135 pSnd = sgSFX[psfx].pSnd;
1136 if (pSnd)
1137 pSnd->start_tc = 0;
1138 }
1139
1140 PlaySFX_priv(&sgSFX[psfx], TRUE, x, y);
1141}
1142
1143void FreeMonsterSnd()
1144{

Callers 15

Obj_TrapFunction · 0.85
Obj_BCrossDamageFunction · 0.85
OperateL1RDoorFunction · 0.85
OperateL1LDoorFunction · 0.85
OperateL2RDoorFunction · 0.85
OperateL2LDoorFunction · 0.85
OperateL3RDoorFunction · 0.85
OperateL3LDoorFunction · 0.85
OperateLeverFunction · 0.85
OperateBookFunction · 0.85
OperateChestFunction · 0.85
OperateMushPatchFunction · 0.85

Calls 2

RndSFXFunction · 0.85
PlaySFX_privFunction · 0.85

Tested by

no test coverage detected