mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-11 19:53:52 +00:00
shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
This commit is contained in:
parent
d63f79325f
commit
7074f35e4b
1373 changed files with 12054 additions and 12054 deletions
|
|
@ -26,7 +26,7 @@ SnowManModel::SnowManModel() : Model()
|
|||
|
||||
piece2 = (new ModelPart(this, 0, 36))->setTexSize(64, 64);
|
||||
piece2->addBox(-6, -12, -6, 12, 12, 12, g - 0.5f); // lower body
|
||||
piece2->setPos(0, 0 + yOffset + 20, 0);
|
||||
piece2->setPos(0, 0 + yOffset + 20, 0);
|
||||
|
||||
// 4J added - compile now to avoid random performance hit first time cubes are rendered
|
||||
head->compile(1.0f/16.0f);
|
||||
|
|
@ -53,12 +53,12 @@ void SnowManModel::setupAnim(float time, float r, float bob, float yRot, float x
|
|||
|
||||
arm1->x = (c) * 5;
|
||||
arm1->z = (-s) * 5;
|
||||
|
||||
|
||||
arm2->x = (-c) * 5;
|
||||
arm2->z = (s) * 5;
|
||||
}
|
||||
|
||||
void SnowManModel::render(shared_ptr<Entity> entity, float time, float r, float bob, float yRot, float xRot, float scale, bool usecompiled)
|
||||
void SnowManModel::render(std::shared_ptr<Entity> entity, float time, float r, float bob, float yRot, float xRot, float scale, bool usecompiled)
|
||||
{
|
||||
setupAnim(time, r, bob, yRot, xRot, scale);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue