diff options
author | Mattes D <github@xoft.cz> | 2014-12-05 12:56:53 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-12-05 12:58:47 +0100 |
commit | 44644ae0254bf3659c0995575041e2f656f20398 (patch) | |
tree | 571528b0f4864c0dab826a4366b9ad40049960be /src/Mobs/Ghast.cpp | |
parent | Merge pull request #1649 from jonfabe/InfoDumpFix (diff) | |
download | cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar.gz cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar.bz2 cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar.lz cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar.xz cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar.zst cuberite-44644ae0254bf3659c0995575041e2f656f20398.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Ghast.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Ghast.cpp b/src/Mobs/Ghast.cpp index c65c0d29a..fc8de8362 100644 --- a/src/Mobs/Ghast.cpp +++ b/src/Mobs/Ghast.cpp @@ -36,7 +36,7 @@ void cGhast::Attack(float a_Dt) { m_AttackInterval += a_Dt * m_AttackRate; - if (m_Target != nullptr && m_AttackInterval > 3.0) + if ((m_Target != nullptr) && (m_AttackInterval > 3.0)) { // Setting this higher gives us more wiggle room for attackrate Vector3d Speed = GetLookVector() * 20; |