mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
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:
@@ -69,7 +69,7 @@ inline int GetChunkHash(int x, int z)
|
||||
LevelChunk* RandomLevelSource::getChunk(int x, int z)
|
||||
{
|
||||
int hashCode = GetChunkHash(x, z);
|
||||
auto iter = m_chunks.find(hashCode);
|
||||
std::map<int, LevelChunk*>::iterator iter = m_chunks.find(hashCode);
|
||||
if (iter != m_chunks.end())
|
||||
return iter->second;
|
||||
|
||||
@@ -97,7 +97,7 @@ LevelChunk* RandomLevelSource::getChunk(int x, int z)
|
||||
LevelChunk* RandomLevelSource::getChunkDontCreate(int x, int z)
|
||||
{
|
||||
int hashCode = GetChunkHash(x, z);
|
||||
auto iter = m_chunks.find(hashCode);
|
||||
std::map<int, LevelChunk*>::iterator iter = m_chunks.find(hashCode);
|
||||
if (iter != m_chunks.end())
|
||||
return iter->second;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user