Move linecrosskludge off of entityclass

This is a temporary vector that only gets used in mapclass::gotoroom().
It's always guaranteed to be cleared, so it's safe to move it off.

I'm fine with using references here because, like, it's a C++ STL vector
anyway - when we switch away from the STL (which is a precondition for
moving to C), we'll be passing around raw pointers here instead, and
won't be using references here anyway.
This commit is contained in:
Misa
2021-04-16 23:12:32 -07:00
committed by Misa Elizabeth Kai
parent 382b83a54d
commit 75ed9f9631
3 changed files with 12 additions and 14 deletions

View File

@@ -66,9 +66,9 @@ public:
void removetrigger(int t);
void copylinecross(int t);
void copylinecross(std::vector<entclass>& linecrosskludge, int t);
void revertlinecross(int t, int s);
void revertlinecross(std::vector<entclass>& linecrosskludge, int t, int s);
bool gridmatch(int p1, int p2, int p3, int p4, int p11, int p21, int p31, int p41);
@@ -165,8 +165,6 @@ public:
std::vector<entclass> entities;
std::vector<entclass> linecrosskludge;
int k;