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

@@ -36,7 +36,7 @@ ServerSideNetworkHandler::~ServerSideNetworkHandler()
if (m_pLevel)
m_pLevel->removeListener(this);
for (auto it = m_onlinePlayers.begin(); it != m_onlinePlayers.end(); ++it)
for (OnlinePlayerMap::iterator it = m_onlinePlayers.begin(); it != m_onlinePlayers.end(); ++it)
delete it->second;
m_onlinePlayers.clear();
@@ -386,7 +386,7 @@ void ServerSideNetworkHandler::redistributePacket(Packet* packet, const RakNet::
OnlinePlayer* ServerSideNetworkHandler::getPlayerByGUID(const RakNet::RakNetGUID& guid)
{
auto iter = m_onlinePlayers.find(guid);
OnlinePlayerMap::iterator iter = m_onlinePlayers.find(guid);
if (iter == m_onlinePlayers.end())
return nullptr;