diff options
Diffstat (limited to '')
-rw-r--r-- | converter/DeNotchConverter.vcxproj | 1 | ||||
-rw-r--r-- | source/cChunkMap.cpp | 2 | ||||
-rw-r--r-- | source/cPlayer.cpp | 1 | ||||
-rw-r--r-- | source/cWorld.cpp | 9 | ||||
-rw-r--r-- | users.ini | 29 |
5 files changed, 25 insertions, 17 deletions
diff --git a/converter/DeNotchConverter.vcxproj b/converter/DeNotchConverter.vcxproj index 0a808ec58..b0e6656b0 100644 --- a/converter/DeNotchConverter.vcxproj +++ b/converter/DeNotchConverter.vcxproj @@ -57,6 +57,7 @@ <FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<AdditionalIncludeDirectories>../zlib-1.2.5</AdditionalIncludeDirectories>
+ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
diff --git a/source/cChunkMap.cpp b/source/cChunkMap.cpp index 2f8339176..90b3258e7 100644 --- a/source/cChunkMap.cpp +++ b/source/cChunkMap.cpp @@ -653,7 +653,7 @@ cChunkMap::cChunkLayer* cChunkMap::LoadLayer(int a_LayerX, int a_LayerZ ) if( fread( &PakVersion, sizeof(PakVersion), 1, f) != 1 ) { LOGERROR("ERROR 1 READING FROM FILE %s", SourceFile); fclose(f); return false; }
if( PakVersion != 1 ) { LOGERROR("WRONG PAK VERSION!"); fclose(f); return 0; }
if( fread( &ChunkVersion, sizeof(ChunkVersion), 1, f) != 1 ) { LOGERROR("ERROR 2 READING FROM FILE %s", SourceFile); fclose(f); return false; }
- if( PakVersion != 1 ) { LOGERROR("WRONG CHUNK VERSION!"); fclose(f); return 0; }
+ if( ChunkVersion != 1 ) { LOGERROR("WRONG CHUNK VERSION!"); fclose(f); return 0; }
short NumChunks = 0;
if( fread( &NumChunks, sizeof(NumChunks), 1, f) != 1 ) { LOGERROR("ERROR 3 READING FROM FILE %s", SourceFile); fclose(f); return false; }
diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp index 4e743a2fe..aca2879ca 100644 --- a/source/cPlayer.cpp +++ b/source/cPlayer.cpp @@ -751,6 +751,7 @@ bool cPlayer::LoadFromDisk() // TODO - This should also get/set/whatever the cor }
else
{
+ LOGWARN("WARNING: Failed to read ini file users.ini");
AddToGroup("Default");
}
ResolvePermissions();
diff --git a/source/cWorld.cpp b/source/cWorld.cpp index 85f8872ec..3d984019c 100644 --- a/source/cWorld.cpp +++ b/source/cWorld.cpp @@ -419,13 +419,20 @@ void cWorld::Tick(float a_Dt) LockChunks();
- while( !m_pState->SpreadQueue.empty() )
+
+ int TimesSpreaded = 0;
+ while( !m_pState->SpreadQueue.empty() && TimesSpreaded < 50 ) // Spread a max of 50 times each tick, otherwise server will hang
{
cChunk* Chunk = (*m_pState->SpreadQueue.begin());
//LOG("Spreading: %p", Chunk );
Chunk->SpreadLight( Chunk->pGetSkyLight() );
Chunk->SpreadLight( Chunk->pGetLight() );
m_pState->SpreadQueue.remove( &*Chunk );
+ TimesSpreaded++;
+ }
+ if( TimesSpreaded >= 50 )
+ {
+ LOGWARN("Lots of lighting to do! At least %i chunks left!", m_pState->SpreadQueue.size() );
}
m_ChunkMap->Tick(a_Dt);
@@ -1,15 +1,14 @@ -[FakeTruth]
-Groups=Admins
-
-[Duralex]
-Groups=Admins
-
-[Luthrandel]
-Groups=Admins
-
-[Cruisecho]
-Groups=Admins
-
-[Kwen]
-Groups=Admins
-
+[FakeTruth]
+Groups=Admins
+
+[Duralex]
+Groups=Admins
+
+[Luthrandel]
+Groups=Admins
+
+[Cruisecho]
+Groups=Admins
+
+[Kwen]
+Groups=Admins
\ No newline at end of file |