Mac OS X 10.6 & More C++03 Support (#68)

* Mac OS X 10.6 & More C++03 Support

* Fix SDL2 options.txt loading for C++03

---------

Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
This commit is contained in:
Brent
2023-08-27 03:46:15 -05:00
committed by GitHub
parent 0c38c01c28
commit f7915a1dab
57 changed files with 1736 additions and 1534 deletions

View File

@@ -374,7 +374,7 @@ void LevelChunk::removeEntity(Entity* pEnt, int vec)
if (vec < 0) vec = 0;
if (vec > 7) vec = 7;
auto it = std::find(m_entities[vec].begin(), m_entities[vec].end(), pEnt);
std::vector<Entity*>::iterator it = std::find(m_entities[vec].begin(), m_entities[vec].end(), pEnt);
if (it != m_entities[vec].end())
m_entities[vec].erase(it);
@@ -583,7 +583,7 @@ void LevelChunk::getEntities(Entity* pEntExclude, const AABB& aabb, std::vector<
for (int b = lowerBound; b <= upperBound; b++)
{
for (auto it = m_entities[b].begin(); it != m_entities[b].end(); it++)
for (std::vector<Entity*>::iterator it = m_entities[b].begin(); it != m_entities[b].end(); it++)
{
Entity* ent = *it;
if (ent == pEntExclude) continue;