- refactored the global lines array into a more VM friendly form, moved it to FLevelLocals and exported it to ZScript.

- disabled the Build map loader after finding out that it has been completely broken and nonfunctional for a long time. Since this has no real value it will probably removed entirely in an upcoming commit.
This commit is contained in:
Christoph Oelckers 2017-01-08 14:39:16 +01:00
commit 71d1138376
39 changed files with 378 additions and 379 deletions

View file

@ -317,27 +317,27 @@ void P_TranslateTeleportThings ()
if (foundSomething)
{
for (int i = 0; i < numlines; ++i)
for (auto &line : level.lines)
{
if (lines[i].special == Teleport)
if (line.special == Teleport)
{
if (lines[i].args[1] == 0)
if (line.args[1] == 0)
{
lines[i].args[0] = 1;
line.args[0] = 1;
}
}
else if (lines[i].special == Teleport_NoFog)
else if (line.special == Teleport_NoFog)
{
if (lines[i].args[2] == 0)
if (line.args[2] == 0)
{
lines[i].args[0] = 1;
line.args[0] = 1;
}
}
else if (lines[i].special == Teleport_ZombieChanger)
else if (line.special == Teleport_ZombieChanger)
{
if (lines[i].args[1] == 0)
if (line.args[1] == 0)
{
lines[i].args[0] = 1;
line.args[0] = 1;
}
}
}