Scriptified compatibility of more Heretic levels

This commit is contained in:
alexey.lysiuk 2018-04-11 12:35:45 +03:00
commit 950443683b
3 changed files with 90 additions and 65 deletions

View file

@ -842,6 +842,19 @@ DEFINE_ACTION_FUNCTION(DLevelCompatibility, SetThingFlags)
return 0;
}
DEFINE_ACTION_FUNCTION(DLevelCompatibility, SetVertex)
{
PARAM_PROLOGUE;
PARAM_UINT(vertex);
PARAM_FLOAT(x);
PARAM_FLOAT(y);
if (vertex < level.vertexes.Size())
{
level.vertexes[vertex].p = DVector2(x, y);
}
return 0;
}
//==========================================================================