summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.cpp
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2017-08-25 15:44:36 +0200
committerAlexander Harkness <me@bearbin.net>2017-08-25 15:44:36 +0200
commit3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb (patch)
tree10475cfc149b63e9de7e76e5efe7228d5c998752 /src/Entities/Entity.cpp
parentDon't assert when placing beds in older versions (#3916) (diff)
downloadcuberite-3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb.tar
cuberite-3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb.tar.gz
cuberite-3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb.tar.bz2
cuberite-3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb.tar.lz
cuberite-3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb.tar.xz
cuberite-3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb.tar.zst
cuberite-3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb.zip
Diffstat (limited to 'src/Entities/Entity.cpp')
-rw-r--r--src/Entities/Entity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp
index 4f35315f7..347c0ec91 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -56,8 +56,8 @@ cEntity::cEntity(eEntityType a_EntityType, double a_X, double a_Y, double a_Z, d
m_TicksSinceLastVoidDamage(0),
m_IsSwimming(false),
m_IsSubmerged(false),
- m_AirLevel(0),
- m_AirTickTimer(0),
+ m_AirLevel(MAX_AIR_LEVEL),
+ m_AirTickTimer(DROWNING_TICKS),
m_TicksAlive(0),
m_IsTicking(false),
m_ParentChunk(nullptr),