mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
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:
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user