From 50a94f972d26ee15fc22cce657d13023d1022905 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 26 Jan 2021 09:41:55 +0000 Subject: Fix debug macro situation (#5114) Use the standard NDEBUG. --- src/World.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/World.cpp') diff --git a/src/World.cpp b/src/World.cpp index 7f6fa0d10..361c26f04 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -613,11 +613,11 @@ bool cWorld::SetSpawn(double a_X, double a_Y, double a_Z) void cWorld::InitializeSpawn(void) { // For the debugging builds, don't make the server build too much world upon start: - #if defined(_DEBUG) || defined(ANDROID) + #if !defined(NDEBUG) || defined(ANDROID) const int DefaultViewDist = 9; #else const int DefaultViewDist = 20; // Always prepare an area 20 chunks across, no matter what the actual cClientHandle::VIEWDISTANCE is - #endif // _DEBUG + #endif // !NDEBUG if (!m_IsSpawnExplicitlySet) { -- cgit v1.2.3