December 2014 files

This commit is contained in:
Loki Rautio
2026-03-01 11:00:23 -06:00
parent b691c43c44
commit 8fd3ac6e37
2049 changed files with 260190 additions and 134787 deletions

View File

@@ -16,6 +16,7 @@ void ModelPart::_init()
neverRender = false;
x=y=z = 0.0f;
xRot=yRot=zRot = 0.0f;
translateX = translateY = translateZ = 0.0f;
}
ModelPart::ModelPart()
@@ -158,6 +159,8 @@ void ModelPart::render(float scale, bool usecompiled, bool bHideParentBodyPart)
if (!visible) return;
if (!compiled) compile(scale);
glTranslatef(translateX, translateY, translateZ);
if (xRot != 0 || yRot != 0 || zRot != 0)
{
glPushMatrix();
@@ -243,6 +246,8 @@ void ModelPart::render(float scale, bool usecompiled, bool bHideParentBodyPart)
}
}
}
glTranslatef(-translateX, -translateY, -translateZ);
}
void ModelPart::renderRollable(float scale, bool usecompiled)