diff options
author | Lukas Pioch <lukas@zgow.de> | 2015-05-18 06:22:26 +0200 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2015-05-18 06:36:52 +0200 |
commit | a75106aea75080abb6d7180e88c573011a018357 (patch) | |
tree | f37d597d226aa5ca2a4625b43c11a09cf044543d | |
parent | APIDump: Removed an unneeded global variable. (diff) | |
download | cuberite-a75106aea75080abb6d7180e88c573011a018357.tar cuberite-a75106aea75080abb6d7180e88c573011a018357.tar.gz cuberite-a75106aea75080abb6d7180e88c573011a018357.tar.bz2 cuberite-a75106aea75080abb6d7180e88c573011a018357.tar.lz cuberite-a75106aea75080abb6d7180e88c573011a018357.tar.xz cuberite-a75106aea75080abb6d7180e88c573011a018357.tar.zst cuberite-a75106aea75080abb6d7180e88c573011a018357.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/FinishGen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp index 00b34bddd..69ae59c18 100644 --- a/src/Generating/FinishGen.cpp +++ b/src/Generating/FinishGen.cpp @@ -1274,6 +1274,7 @@ bool cFinishGenPassiveMobs::TrySpawnAnimals(cChunkDesc & a_ChunkDesc, int a_RelX double AnimalZ = static_cast<double>(a_ChunkDesc.GetChunkZ() * cChunkDef::Width + a_RelZ + 0.5); cMonster * NewMob = cMonster::NewMonsterFromType(AnimalToSpawn); + NewMob->SetHealth(NewMob->GetMaxHealth()); NewMob->SetPosition(AnimalX, AnimalY, AnimalZ); a_ChunkDesc.GetEntities().push_back(NewMob); LOGD("Spawning %s #%i at {%.02f, %.02f, %.02f}", NewMob->GetClass(), NewMob->GetUniqueID(), AnimalX, AnimalY, AnimalZ); |