From d9a7c51d4da21976ce3a8d41cde23fc9a4b6eb9d Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Wed, 23 Dec 2020 22:39:53 +0000 Subject: ViewDistance: unsigned -> signed --- src/World.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/World.h') diff --git a/src/World.h b/src/World.h index b2d996870..b0ffc2b07 100644 --- a/src/World.h +++ b/src/World.h @@ -896,8 +896,8 @@ public: eShrapnelLevel GetTNTShrapnelLevel(void) const { return m_TNTShrapnelLevel; } void SetTNTShrapnelLevel(eShrapnelLevel a_Flag) { m_TNTShrapnelLevel = a_Flag; } - unsigned GetMaxViewDistance(void) const { return m_MaxViewDistance; } - void SetMaxViewDistance(unsigned a_MaxViewDistance); + int GetMaxViewDistance(void) const { return m_MaxViewDistance; } + void SetMaxViewDistance(int a_MaxViewDistance); bool ShouldUseChatPrefixes(void) const { return m_bUseChatPrefixes; } void SetShouldUseChatPrefixes(bool a_Flag) { m_bUseChatPrefixes = a_Flag; } @@ -1249,7 +1249,7 @@ private: eShrapnelLevel m_TNTShrapnelLevel; /** The maximum view distance that a player can have in this world. */ - unsigned m_MaxViewDistance; + int m_MaxViewDistance; /** Name of the nether world - where Nether portals should teleport. Only used when this world is an Overworld. */ -- cgit v1.2.3