X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Feffects%2Fqc%2Fglobalsound.qc;h=a2653238e7ebea30ad5a22f26203adf9156c66e1;hb=b9671f63469586007314131f3f53728795c035cd;hp=b6ce6823dc46243d0bafab7ad394fc906704ae68;hpb=ee5a6c406bd76687a3abceea75e2885ae3bc21e2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/effects/qc/globalsound.qc b/qcsrc/common/effects/qc/globalsound.qc index b6ce6823d..a2653238e 100644 --- a/qcsrc/common/effects/qc/globalsound.qc +++ b/qcsrc/common/effects/qc/globalsound.qc @@ -105,7 +105,7 @@ o.y = ReadCoord(); o.z = ReadCoord(); // TODO: is this really what we want to be doing? Footsteps that follow the player at head height? - if (who == player_currententnum) e = findfloat(world, entnum, who); // play at camera position for full volume + if (who == player_currententnum) e = findfloat(NULL, entnum, who); // play at camera position for full volume else if (e) e.origin = o; if (e) { @@ -136,7 +136,7 @@ o.x = ReadCoord(); o.y = ReadCoord(); o.z = ReadCoord(); - if (who == player_currententnum) e = findfloat(world, entnum, who); // play at camera position for full volume + if (who == player_currententnum) e = findfloat(NULL, entnum, who); // play at camera position for full volume else if (e) e.origin = o; if (e) {