diff options
author | Mattes D <github@xoft.cz> | 2015-03-14 22:32:23 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-03-14 22:32:23 +0100 |
commit | ebf0126dc9ecc0426102374796b4e18761bebb10 (patch) | |
tree | c81db2f80f9df119fa3099b31e9d574756f6441d /src/Mobs/Ghast.cpp | |
parent | Merge pull request #1809 from flx5/master (diff) | |
parent | Fixed a small bug (diff) | |
download | cuberite-ebf0126dc9ecc0426102374796b4e18761bebb10.tar cuberite-ebf0126dc9ecc0426102374796b4e18761bebb10.tar.gz cuberite-ebf0126dc9ecc0426102374796b4e18761bebb10.tar.bz2 cuberite-ebf0126dc9ecc0426102374796b4e18761bebb10.tar.lz cuberite-ebf0126dc9ecc0426102374796b4e18761bebb10.tar.xz cuberite-ebf0126dc9ecc0426102374796b4e18761bebb10.tar.zst cuberite-ebf0126dc9ecc0426102374796b4e18761bebb10.zip |
Diffstat (limited to 'src/Mobs/Ghast.cpp')
-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 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)) { |