- removed the needless copying around of the vertexdatas array. The slope code can just use this from the TArray created by the UDMF parser.

This commit is contained in:
Christoph Oelckers 2017-01-09 01:40:14 +01:00
commit 472ace1bea
4 changed files with 7 additions and 17 deletions

View file

@ -278,7 +278,7 @@ static void P_SetSlopesFromVertexHeights(FMapThing *firstmt, FMapThing *lastmt,
}
}
for(int i = 0; i < numvertexdatas; i++)
for(unsigned i = 0; i < vertexdatas.Size(); i++)
{
int ii = oldvertextable == NULL ? i : oldvertextable[i];
@ -296,9 +296,8 @@ static void P_SetSlopesFromVertexHeights(FMapThing *firstmt, FMapThing *lastmt,
}
// If vertexdata_t is ever extended for non-slope usage, this will obviously have to be deferred or removed.
delete[] vertexdatas;
vertexdatas = NULL;
numvertexdatas = 0;
vertexdatas.Clear();
vertexdatas.ShrinkToFit();
if (vt_found)
{