- fixed GetLineX/GetLineY ACS implementation

# Conflicts:
#	src/p_acs.cpp
This commit is contained in:
Christoph Oelckers 2019-10-20 14:32:11 +02:00 committed by drfrag
parent f15a52b1e7
commit 5ded0aadf0

View file

@ -6825,7 +6825,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();