- scriptified the last remaining definition (BTSX MAP12 beta)

- Changes to map geometry must force a node rebuild (SetVertex, SetLineSectorRef.)
- fixed incorrect use of scaling constant in SetWallYScale.
This commit is contained in:
Christoph Oelckers 2018-04-11 19:10:15 +02:00
commit 3988e27059
3 changed files with 21 additions and 18 deletions

View file

@ -104,6 +104,7 @@ enum
// EXTERNAL DATA DECLARATIONS ----------------------------------------------
extern TArray<FMapThing> MapThingsConverted;
extern bool ForceNodeBuild;
// PUBLIC DATA DEFINITIONS -------------------------------------------------
@ -853,6 +854,7 @@ DEFINE_ACTION_FUNCTION(DLevelCompatibility, SetVertex)
{
level.vertexes[vertex].p = DVector2(x, y);
}
ForceNodeBuild = true;
return 0;
}
@ -872,6 +874,7 @@ DEFINE_ACTION_FUNCTION(DLevelCompatibility, SetLineSectorRef)
side->sector = &level.sectors[sectoridx];
}
}
ForceNodeBuild = true;
return 0;
}