aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/ChickenModel.cpp
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 17:37:16 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 17:37:16 +0700
commit119bff351450ea16ffda550b6e0f67379b29f708 (patch)
treed9f28714afd516bc2450f33b0a77c5e05ff4de90 /Minecraft.Client/ChickenModel.cpp
parent8a2a62ea1d47364f802cf9aae97668bc4a7007b5 (diff)
Revert "shared_ptr -> std::shared_ptr"
This reverts commit 7074f35e4ba831e358117842b99ee35b87f85ae5.
Diffstat (limited to 'Minecraft.Client/ChickenModel.cpp')
-rw-r--r--Minecraft.Client/ChickenModel.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Minecraft.Client/ChickenModel.cpp b/Minecraft.Client/ChickenModel.cpp
index 2a88fac6..21dc2059 100644
--- a/Minecraft.Client/ChickenModel.cpp
+++ b/Minecraft.Client/ChickenModel.cpp
@@ -49,10 +49,10 @@ ChickenModel::ChickenModel() : Model()
wing1->compile(1.0f/16.0f);
}
-void ChickenModel::render(std::shared_ptr<Entity> entity, float time, float r, float bob, float yRot, float xRot, float scale, bool usecompiled)
+void ChickenModel::render(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);
- if (young)
+ if (young)
{
float ss = 2;
glPushMatrix();
@@ -70,8 +70,8 @@ void ChickenModel::render(std::shared_ptr<Entity> entity, float time, float r, f
wing0->render(scale,usecompiled);
wing1->render(scale,usecompiled);
glPopMatrix();
- }
- else
+ }
+ else
{
head->render(scale,usecompiled);
beak->render(scale,usecompiled);
@@ -88,13 +88,13 @@ void ChickenModel::setupAnim(float time, float r, float bob, float yRot, float x
{
head->xRot = xRot / (float) (180 / PI);
head->yRot = yRot / (float) (180 / PI);
-
+
beak->xRot = head->xRot;
beak->yRot = head->yRot;
-
+
redThing->xRot = head->xRot;
redThing->yRot = head->yRot;
-
+
body->xRot = 90 / (float) (180 / PI);
leg0->xRot = (Mth::cos(time * 0.6662f) * 1.4f) * r;