mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-25 09:10:44 +00:00
fix: resolve all remaining compilation warnings
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
class Chunk;
|
||||
class Mob;
|
||||
|
||||
class DirtyChunkSorter : public std::binary_function<const Chunk *,const Chunk *,bool>
|
||||
class DirtyChunkSorter
|
||||
{
|
||||
private:
|
||||
shared_ptr<Mob> cameraEntity;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
class Entity;
|
||||
class Chunk;
|
||||
|
||||
class DistanceChunkSorter : public std::binary_function<const Chunk *,const Chunk *,bool>
|
||||
class DistanceChunkSorter
|
||||
{
|
||||
private:
|
||||
double ix, iy, iz;
|
||||
|
||||
@@ -2386,7 +2386,7 @@ void LevelRenderer::setDirty(int x0, int y0, int z0, int x1, int y1, int z1, Lev
|
||||
|
||||
dirtyChunksLockFreeStack.Push((int *)(index));
|
||||
#else
|
||||
dirtyChunksLockFreeStack.Push((int *)(index + 2));
|
||||
dirtyChunksLockFreeStack.Push((int *)(intptr_t)(index + 2));
|
||||
#endif
|
||||
|
||||
#ifdef _XBOX
|
||||
@@ -3599,7 +3599,7 @@ void LevelRenderer::staticCtor()
|
||||
for(unsigned int i = 0; i < MAX_CHUNK_REBUILD_THREADS; ++i)
|
||||
{
|
||||
sprintf(threadName,"Rebuild Chunk Thread %d\n",i);
|
||||
rebuildThreads[i] = new C4JThread(rebuildChunkThreadProc,(void *)i,threadName);
|
||||
rebuildThreads[i] = new C4JThread(rebuildChunkThreadProc,(void *)(intptr_t)i,threadName);
|
||||
|
||||
s_activationEventA[i] = new C4JThread::Event();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user