mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 16:07:40 +00:00
- fixed GetLineX/GetLineY ACS implementation
This commit is contained in:
parent
8b10d231cd
commit
777798ede4
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue