From 2942e57f93f1019d7517baf25f862947962da78d Mon Sep 17 00:00:00 2001 From: Tycho Bickerstaff Date: Sun, 8 Dec 2013 00:08:25 +0000 Subject: reordered initalisation order at src/Generating/Cave.h line 73 --- src/Generating/Caves.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Generating/Caves.h b/src/Generating/Caves.h index 70cf6fe8c..ea7f10bf4 100644 --- a/src/Generating/Caves.h +++ b/src/Generating/Caves.h @@ -70,8 +70,8 @@ public: cStructGenWormNestCaves(int a_Seed, int a_Size = 64, int a_Grid = 96, int a_MaxOffset = 128) : m_Noise(a_Seed), m_Size(a_Size), - m_Grid(a_Grid), - m_MaxOffset(a_MaxOffset) + m_MaxOffset(a_MaxOffset), + m_Grid(a_Grid) { } -- cgit v1.2.3 From 4c2490ed1770630edab1b5bba60217dede2cf1fd Mon Sep 17 00:00:00 2001 From: Tycho Bickerstaff Date: Sun, 8 Dec 2013 00:13:31 +0000 Subject: moved deafult action into deafult clause at src/Generating/DistortedHeightmap.cpp line 741 --- src/Generating/DistortedHeightmap.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Generating/DistortedHeightmap.cpp b/src/Generating/DistortedHeightmap.cpp index a61d79bec..c32a3bf43 100644 --- a/src/Generating/DistortedHeightmap.cpp +++ b/src/Generating/DistortedHeightmap.cpp @@ -737,9 +737,11 @@ void cDistortedHeightmap::ComposeColumn(cChunkDesc & a_ChunkDesc, int a_RelX, in FillColumnMesa(a_ChunkDesc, a_RelX, a_RelZ); return; } - + default: + ASSERT(!"Unhandled biome"); + return; } // switch (Biome) - ASSERT(!"Unhandled biome"); + ASSERT(!"Unexpected fallthrough"); } -- cgit v1.2.3 From 7135bdf5917962a972233bfd307a7bc936d48642 Mon Sep 17 00:00:00 2001 From: Tycho Bickerstaff Date: Tue, 10 Dec 2013 16:59:45 +0000 Subject: added abort to DeadlockDetector to generate core dumps on failure --- src/DeadlockDetect.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/DeadlockDetect.cpp b/src/DeadlockDetect.cpp index e699e0c84..c42d09b89 100644 --- a/src/DeadlockDetect.cpp +++ b/src/DeadlockDetect.cpp @@ -7,6 +7,7 @@ #include "DeadlockDetect.h" #include "Root.h" #include "World.h" +# include @@ -137,11 +138,7 @@ void cDeadlockDetect::CheckWorldAge(const AString & a_WorldName, Int64 a_Age) void cDeadlockDetect::DeadlockDetected(void) { ASSERT(!"Deadlock detected"); - - // TODO: Make a crashdump / coredump - - // Crash the server intentionally: - *((volatile int *)0) = 0; + abort(); } -- cgit v1.2.3