Rename edentities to CustomEntity

That's what it is - it's an entity in a custom level. Not something to
do with the editor, necessarily. Like before, the name of the XML
element will remain the same.
This commit is contained in:
Misa
2021-02-20 15:56:59 -08:00
committed by Misa Elizabeth Kai
parent 3c30d9b7f0
commit 47d01277bf
5 changed files with 8 additions and 7 deletions

View File

@@ -453,7 +453,7 @@ void mapclass::initcustommapdata(void)
#if !defined(NO_CUSTOM_LEVELS)
for (size_t i = 0; i < edentity.size(); i++)
{
const edentities& ent = edentity[i];
const CustomEntity& ent = edentity[i];
if (ent.t != 9)
{
continue;
@@ -1637,7 +1637,7 @@ void mapclass::loadlevel(int rx, int ry)
for (size_t edi = 0; edi < edentity.size(); edi++)
{
// If entity is in this room, create it
const edentities& ent = edentity[edi];
const CustomEntity& ent = edentity[edi];
const int tsx = ent.x / 40;
const int tsy = ent.y / 30;