summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-04 01:34:12 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-04 01:34:12 +0200
commit0911072d27820bd608bb908088419d3ec5151434 (patch)
treecb835f191152f05aebf2af53e9e5cb4d45073f6d /src/Mobs
parentAttempting a compilation fix for gcc / clang. (diff)
downloadcuberite-0911072d27820bd608bb908088419d3ec5151434.tar
cuberite-0911072d27820bd608bb908088419d3ec5151434.tar.gz
cuberite-0911072d27820bd608bb908088419d3ec5151434.tar.bz2
cuberite-0911072d27820bd608bb908088419d3ec5151434.tar.lz
cuberite-0911072d27820bd608bb908088419d3ec5151434.tar.xz
cuberite-0911072d27820bd608bb908088419d3ec5151434.tar.zst
cuberite-0911072d27820bd608bb908088419d3ec5151434.zip
Diffstat (limited to 'src/Mobs')
-rw-r--r--src/Mobs/Monster.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index 94df991a3..66c9aadeb 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -292,6 +292,10 @@ void cMonster::Tick(float a_Dt, cChunk & a_Chunk)
{
Distance *= 2.5;
}
+ else if (IsSwimming())
+ {
+ Distance *= 1.3;
+ }
else
{
// Don't let the mob move too much if he's falling.
@@ -301,11 +305,13 @@ void cMonster::Tick(float a_Dt, cChunk & a_Chunk)
AddSpeedX(Distance.x);
AddSpeedZ(Distance.z);
- if (m_EMState == ESCAPING)
- { // Runs Faster when escaping :D otherwise they just walk away
+ /* It's too buggy! */
+ /** if (m_EMState == ESCAPING)
+ {
+ // Runs Faster when escaping :D otherwise they just walk away
SetSpeedX (GetSpeedX() * 2.f);
SetSpeedZ (GetSpeedZ() * 2.f);
- }
+ } */
}
else
{