summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-04-10 17:03:51 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2021-04-12 23:35:07 +0200
commit951e6c76a7951a687c8efe5db5d264f4c9933846 (patch)
tree00a07be64d8cbca4bb6f214e1c47b9fb75ef7196 /src
parentMore cProtocol cleanup (diff)
downloadcuberite-951e6c76a7951a687c8efe5db5d264f4c9933846.tar
cuberite-951e6c76a7951a687c8efe5db5d264f4c9933846.tar.gz
cuberite-951e6c76a7951a687c8efe5db5d264f4c9933846.tar.bz2
cuberite-951e6c76a7951a687c8efe5db5d264f4c9933846.tar.lz
cuberite-951e6c76a7951a687c8efe5db5d264f4c9933846.tar.xz
cuberite-951e6c76a7951a687c8efe5db5d264f4c9933846.tar.zst
cuberite-951e6c76a7951a687c8efe5db5d264f4c9933846.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp12
-rw-r--r--src/Entities/Player.h8
2 files changed, 10 insertions, 10 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 1bfeea6e2..65fed943b 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -31,8 +31,9 @@
#include "../CraftingRecipes.h"
-// 6000 ticks or 5 minutes
-#define PLAYER_INVENTORY_SAVE_INTERVAL 6000
+
+
+
namespace
{
@@ -62,6 +63,13 @@ const int cPlayer::MAX_FOOD_LEVEL = 20;
// Number of ticks it takes to eat an item.
#define EATING_TICKS 30_tick
+// 6000 ticks or 5 minutes
+#define PLAYER_INVENTORY_SAVE_INTERVAL 6000
+
+#define XP_TO_LEVEL15 255
+#define XP_PER_LEVEL_TO15 17
+#define XP_TO_LEVEL30 825
+
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index 7c8922dbf..3e35e4232 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -612,14 +612,6 @@ public:
private:
- /** Xp Level stuff */
- enum
- {
- XP_TO_LEVEL15 = 255,
- XP_PER_LEVEL_TO15 = 17,
- XP_TO_LEVEL30 = 825
- } ;
-
typedef std::vector<std::vector<AString> > AStringVectorVector;
/** The current body stance the player has adopted. */