|
@@ -280,14 +280,9 @@ void SkeletalModel::display(unsigned int aframe, unsigned int bframe) {
|
280
|
280
|
tag.getOffset(off);
|
281
|
281
|
|
282
|
282
|
if (a == 0) {
|
283
|
|
- if (!equalEpsilon(rot[1], 0.0f))
|
284
|
|
- glRotatef(rot[1], 0, 1, 0);
|
285
|
|
-
|
286
|
|
- if (!equalEpsilon(rot[0], 0.0f))
|
287
|
|
- glRotatef(rot[0], 1, 0, 0);
|
288
|
|
-
|
289
|
|
- if (!equalEpsilon(rot[2], 0.0f))
|
290
|
|
- glRotatef(rot[2], 0, 0, 1);
|
|
283
|
+ glRotatef(rot[1], 0, 1, 0);
|
|
284
|
+ glRotatef(rot[0], 1, 0, 0);
|
|
285
|
+ glRotatef(rot[2], 0, 0, 1);
|
291
|
286
|
} else {
|
292
|
287
|
if (tag.getFlag() & 0x01)
|
293
|
288
|
glPopMatrix();
|
|
@@ -296,15 +291,9 @@ void SkeletalModel::display(unsigned int aframe, unsigned int bframe) {
|
296
|
291
|
glPushMatrix();
|
297
|
292
|
|
298
|
293
|
glTranslatef(off[0], off[1], off[2]);
|
299
|
|
-
|
300
|
|
- if (!equalEpsilon(rot[1], 0.0f))
|
301
|
|
- glRotatef(rot[1], 0, 1, 0);
|
302
|
|
-
|
303
|
|
- if (!equalEpsilon(rot[0], 0.0f))
|
304
|
|
- glRotatef(rot[0], 1, 0, 0);
|
305
|
|
-
|
306
|
|
- if (!equalEpsilon(rot[2], 0.0f))
|
307
|
|
- glRotatef(rot[2], 0, 0, 1);
|
|
294
|
+ glRotatef(rot[1], 0, 1, 0);
|
|
295
|
+ glRotatef(rot[0], 1, 0, 0);
|
|
296
|
+ glRotatef(rot[2], 0, 0, 1);
|
308
|
297
|
}
|
309
|
298
|
|
310
|
299
|
// Draw layered lara in TR4 (2 meshes per tag)
|