summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Ghast.cpp
diff options
context:
space:
mode:
authortumultenrx <tumultenrx@gmail.com>2015-03-12 19:37:39 +0100
committertumultenrx <tumultenrx@gmail.com>2015-03-13 00:02:36 +0100
commita215070cf22472299a848111692dc1a864106a4f (patch)
treee2981f63e8a69d1c0d48d3eab926f35029e5027e /src/Mobs/Ghast.cpp
parentMerge pull request #1761 from mc-server/NetworkIPEnum (diff)
downloadcuberite-a215070cf22472299a848111692dc1a864106a4f.tar
cuberite-a215070cf22472299a848111692dc1a864106a4f.tar.gz
cuberite-a215070cf22472299a848111692dc1a864106a4f.tar.bz2
cuberite-a215070cf22472299a848111692dc1a864106a4f.tar.lz
cuberite-a215070cf22472299a848111692dc1a864106a4f.tar.xz
cuberite-a215070cf22472299a848111692dc1a864106a4f.tar.zst
cuberite-a215070cf22472299a848111692dc1a864106a4f.zip
Diffstat (limited to 'src/Mobs/Ghast.cpp')
-rw-r--r--src/Mobs/Ghast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Ghast.cpp b/src/Mobs/Ghast.cpp
index ea0295102..d17047ab7 100644
--- a/src/Mobs/Ghast.cpp
+++ b/src/Mobs/Ghast.cpp
@@ -34,7 +34,7 @@ void cGhast::GetDrops(cItems & a_Drops, cEntity * a_Killer)
void cGhast::Attack(std::chrono::milliseconds a_Dt)
{
- m_AttackInterval += a_Dt.count() * m_AttackRate;
+ m_AttackInterval += (static_cast<float>(a_Dt.count()) / 1000) * m_AttackRate;
if ((m_Target != nullptr) && (m_AttackInterval > 3.0))
{