aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/MinecartModel.cpp
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 15:58:20 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 15:58:20 +0700
commit7074f35e4ba831e358117842b99ee35b87f85ae5 (patch)
tree7d440d23473196af3056bf2ff4c59d9e740a06f5 /Minecraft.Client/MinecartModel.cpp
parentd63f79325f85e014361eb8cf1e41eaebedb1ae71 (diff)
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.
Diffstat (limited to 'Minecraft.Client/MinecartModel.cpp')
-rw-r--r--Minecraft.Client/MinecartModel.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Minecraft.Client/MinecartModel.cpp b/Minecraft.Client/MinecartModel.cpp
index 8a1ce0d7..d4ff04c0 100644
--- a/Minecraft.Client/MinecartModel.cpp
+++ b/Minecraft.Client/MinecartModel.cpp
@@ -18,22 +18,22 @@ MinecartModel::MinecartModel() : Model()
cubes[0]->addBox((float)(-w / 2), (float)(-h / 2), -1, w, h, 2, 0);
cubes[0]->setPos(0, (float)(0 + yOff), 0);
-
+
cubes[5]->addBox((float)(-w / 2 + 1), (float)(-h / 2 + 1), -1, w - 2, h - 2, 1, 0);
cubes[5]->setPos(0, (float)(0 + yOff), 0);
-
+
cubes[1]->addBox((float)(-w / 2 + 2), (float)(-d - 1), -1, w - 4, d, 2, 0);
cubes[1]->setPos((float)(-w / 2 + 1), (float)(0 + yOff), 0);
-
+
cubes[2]->addBox((float)(-w / 2 + 2), (float)(-d - 1), -1, w - 4, d, 2, 0);
cubes[2]->setPos((float)(+w / 2 - 1), (float)(0 + yOff), 0);
-
+
cubes[3]->addBox((float)(-w / 2 + 2), (float)(-d - 1), -1, w - 4, d, 2, 0);
cubes[3]->setPos(0, (float)(0 + yOff), (float)(-h / 2 + 1));
-
+
cubes[4]->addBox((float)(-w / 2 + 2), (float)(-d - 1), -1, w - 4, d, 2, 0);
cubes[4]->setPos(0, (float)(0 + yOff), (float)(+h / 2 - 1));
-
+
cubes[0]->xRot = PI / 2;
cubes[1]->yRot = PI / 2 * 3;
cubes[2]->yRot = PI / 2 * 1;
@@ -47,7 +47,7 @@ MinecartModel::MinecartModel() : Model()
}
}
-void MinecartModel::render(shared_ptr<Entity> entity, float time, float r, float bob, float yRot, float xRot, float scale, bool usecompiled)
+void MinecartModel::render(std::shared_ptr<Entity> entity, float time, float r, float bob, float yRot, float xRot, float scale, bool usecompiled)
{
cubes[5]->y = 4 - bob;
for (int i = 0; i < MINECART_LENGTH; i++)