From a215070cf22472299a848111692dc1a864106a4f Mon Sep 17 00:00:00 2001 From: tumultenrx Date: Thu, 12 Mar 2015 19:37:39 +0100 Subject: Monsters will now attack. Additional checks have been added when generating spawn. Monsters will now attack. Additional checks have been added when generating spawn. --- src/Mobs/Ghast.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Mobs/Ghast.cpp') 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(a_Dt.count()) / 1000) * m_AttackRate; if ((m_Target != nullptr) && (m_AttackInterval > 3.0)) { -- cgit v1.2.3