diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-08-04 01:35:25 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-08-04 01:35:25 +0200 |
commit | 7bea90d6caca9f9b4389fe14ab49720f22cb9273 (patch) | |
tree | f7e5167318cfd7ec763925193723dd573cf29478 /src/Mobs | |
parent | Attempt to fix knockback and swimming. (diff) | |
download | cuberite-7bea90d6caca9f9b4389fe14ab49720f22cb9273.tar cuberite-7bea90d6caca9f9b4389fe14ab49720f22cb9273.tar.gz cuberite-7bea90d6caca9f9b4389fe14ab49720f22cb9273.tar.bz2 cuberite-7bea90d6caca9f9b4389fe14ab49720f22cb9273.tar.lz cuberite-7bea90d6caca9f9b4389fe14ab49720f22cb9273.tar.xz cuberite-7bea90d6caca9f9b4389fe14ab49720f22cb9273.tar.zst cuberite-7bea90d6caca9f9b4389fe14ab49720f22cb9273.zip |
Diffstat (limited to 'src/Mobs')
-rw-r--r-- | src/Mobs/Monster.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index 66c9aadeb..54ad869c2 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -290,16 +290,16 @@ void cMonster::Tick(float a_Dt, cChunk & a_Chunk) if (m_bOnGround) { - Distance *= 2.5; + Distance *= 2.5f; } else if (IsSwimming()) { - Distance *= 1.3; + Distance *= 1.3f; } else { // Don't let the mob move too much if he's falling. - Distance *= 0.25; + Distance *= 0.25f; } AddSpeedX(Distance.x); |