diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2016-11-13 20:00:01 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2016-11-13 20:00:01 +0100 |
commit | 944fdd173f40c0fcc718d6aa2af191bf993adc70 (patch) | |
tree | 28436adf7e20c58427c8d48685d944b964e11147 /src/BlockEntities/MobSpawnerEntity.cpp | |
parent | Merge pull request #3430 from cuberite/Overrides (diff) | |
download | cuberite-944fdd173f40c0fcc718d6aa2af191bf993adc70.tar cuberite-944fdd173f40c0fcc718d6aa2af191bf993adc70.tar.gz cuberite-944fdd173f40c0fcc718d6aa2af191bf993adc70.tar.bz2 cuberite-944fdd173f40c0fcc718d6aa2af191bf993adc70.tar.lz cuberite-944fdd173f40c0fcc718d6aa2af191bf993adc70.tar.xz cuberite-944fdd173f40c0fcc718d6aa2af191bf993adc70.tar.zst cuberite-944fdd173f40c0fcc718d6aa2af191bf993adc70.zip |
Diffstat (limited to 'src/BlockEntities/MobSpawnerEntity.cpp')
-rw-r--r-- | src/BlockEntities/MobSpawnerEntity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BlockEntities/MobSpawnerEntity.cpp b/src/BlockEntities/MobSpawnerEntity.cpp index 7f1b88c9b..6a5b79e42 100644 --- a/src/BlockEntities/MobSpawnerEntity.cpp +++ b/src/BlockEntities/MobSpawnerEntity.cpp @@ -170,7 +170,7 @@ void cMobSpawnerEntity::SpawnEntity(void) } Monster->SetPosition(PosX, RelY, PosZ); - Monster->SetYaw(Random.NextFloat() * 360.0f); + Monster->SetYaw(static_cast<double>(Random.NextFloat()) * 360); if (Chunk->GetWorld()->SpawnMobFinalize(Monster) != cEntity::INVALID_ID) { EntitiesSpawned = true; |