mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +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:
@@ -1148,7 +1148,7 @@ void entityclass::removetrigger( int t )
|
||||
}
|
||||
}
|
||||
|
||||
void entityclass::copylinecross( int t )
|
||||
void entityclass::copylinecross(std::vector<entclass>& linecrosskludge, int t)
|
||||
{
|
||||
if (!INBOUNDS_VEC(t, entities))
|
||||
{
|
||||
@@ -1159,7 +1159,7 @@ void entityclass::copylinecross( int t )
|
||||
linecrosskludge.push_back(entities[t]);
|
||||
}
|
||||
|
||||
void entityclass::revertlinecross( int t, int s )
|
||||
void entityclass::revertlinecross(std::vector<entclass>& linecrosskludge, int t, int s)
|
||||
{
|
||||
if (!INBOUNDS_VEC(t, entities) || !INBOUNDS_VEC(s, linecrosskludge))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user