mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-22 10:03:50 +00:00
Revert "dynamic_pointer_cast -> std::dynamic_pointer_cast"
This reverts commit 07ad68bc15.
This commit is contained in:
parent
07ad68bc15
commit
7ae0c13854
207 changed files with 623 additions and 623 deletions
|
|
@ -89,7 +89,7 @@ void MobSpawnerTileEntity::tick()
|
|||
|
||||
for (int c = 0; c < spawnCount; c++)
|
||||
{
|
||||
std::shared_ptr<Mob> entity = std::dynamic_pointer_cast<Mob> (EntityIO::newEntity(entityId, level));
|
||||
std::shared_ptr<Mob> entity = dynamic_pointer_cast<Mob> (EntityIO::newEntity(entityId, level));
|
||||
if (entity == NULL) return;
|
||||
|
||||
vector<std::shared_ptr<Entity> > *vecNearby = level->getEntitiesOfClass(typeid(*entity), AABB::newTemp(x, y, z, x + 1, y + 1, z + 1)->grow(8, 4, 8));
|
||||
|
|
@ -115,7 +115,7 @@ void MobSpawnerTileEntity::tick()
|
|||
double xp = x + (level->random->nextDouble() - level->random->nextDouble()) * 4;
|
||||
double yp = y + level->random->nextInt(3) - 1;
|
||||
double zp = z + (level->random->nextDouble() - level->random->nextDouble()) * 4;
|
||||
std::shared_ptr<Mob> mob = std::dynamic_pointer_cast<Mob>( entity );
|
||||
std::shared_ptr<Mob> mob = dynamic_pointer_cast<Mob>( entity );
|
||||
|
||||
entity->moveTo(xp, yp, zp, level->random->nextFloat() * 360, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue