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

@@ -25,7 +25,7 @@ void ParticleEngine::setLevel(Level* level)
for (int i = 0; i < 4; i++)
{
#ifndef ORIGINAL_CODE
for (auto it = m_particles[i].begin(); it != m_particles[i].end(); it++)
for (std::vector<Particle*>::iterator it = m_particles[i].begin(); it != m_particles[i].end(); it++)
{
Particle* pParticle = *it;
delete pParticle;
@@ -168,7 +168,7 @@ void ParticleEngine::render(Entity* ent, float f)
t.begin();
for (auto it = m_particles[i].begin(); it != m_particles[i].end(); it++)
for (std::vector<Particle*>::iterator it = m_particles[i].begin(); it != m_particles[i].end(); it++)
{
Particle* pParticle = *it;
pParticle->render(t, f, x1, x2, x3, x4, x5);