Scriptified remaining compatibility entries

This commit is contained in:
alexey.lysiuk 2018-04-11 17:01:57 +03:00
commit 6631f208b1
3 changed files with 62 additions and 52 deletions

View file

@ -856,6 +856,25 @@ DEFINE_ACTION_FUNCTION(DLevelCompatibility, SetVertex)
return 0;
}
DEFINE_ACTION_FUNCTION(DLevelCompatibility, SetLineSectorRef)
{
PARAM_PROLOGUE;
PARAM_UINT(lineidx);
PARAM_UINT(sideidx);
PARAM_UINT(sectoridx);
if ( sideidx < 2
&& lineidx < level.lines.Size()
&& sectoridx < level.sectors.Size())
{
if (side_t *side = level.lines[lineidx].sidedef[sideidx])
{
side->sector = &level.sectors[sectoridx];
}
}
return 0;
}
//==========================================================================
//