Skip to content
Permalink
Browse files

- fixed GetLineX/GetLineY ACS implementation

  • Loading branch information...
coelckers committed Oct 20, 2019
1 parent 8b10d23 commit 777798ede4b68cc71d1e1313d491e70c0eef9593
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/playsim/p_acs.cpp
@@ -6690,7 +6690,7 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
int lineno = it.Next();
if (lineno < 0) return 0;
DVector2 delta = Level->lines[lineno].Delta();
double result = delta[funcIndex - ACSF_GetLineX] * ACSToDouble(args[1]);
double result = Level->lines[lineno].v1->fPos()[funcIndex - ACSF_GetLineX] + delta[funcIndex - ACSF_GetLineX] * ACSToDouble(args[1]);
if (args[2])
{
DVector2 normal = DVector2(delta.Y, -delta.X).Unit();

0 comments on commit 777798e

Please sign in to comment.
You can’t perform that action at this time.