summaryrefslogtreecommitdiffstats
path: root/src/rw/RwHelper.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-13 13:56:25 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-13 13:56:25 +0100
commitff057838ec8f2f03b6990a87ca30e85ca45daafb (patch)
tree38af6623091aed50390109799d7f8b0ea28d2224 /src/rw/RwHelper.cpp
parentMerge remote-tracking branch 'origin/miami' into lcs (diff)
parentFix backface culling of cutscene objects (diff)
downloadre3-ff057838ec8f2f03b6990a87ca30e85ca45daafb.tar
re3-ff057838ec8f2f03b6990a87ca30e85ca45daafb.tar.gz
re3-ff057838ec8f2f03b6990a87ca30e85ca45daafb.tar.bz2
re3-ff057838ec8f2f03b6990a87ca30e85ca45daafb.tar.lz
re3-ff057838ec8f2f03b6990a87ca30e85ca45daafb.tar.xz
re3-ff057838ec8f2f03b6990a87ca30e85ca45daafb.tar.zst
re3-ff057838ec8f2f03b6990a87ca30e85ca45daafb.zip
Diffstat (limited to 'src/rw/RwHelper.cpp')
-rw-r--r--src/rw/RwHelper.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rw/RwHelper.cpp b/src/rw/RwHelper.cpp
index 38a0f613..d80a3904 100644
--- a/src/rw/RwHelper.cpp
+++ b/src/rw/RwHelper.cpp
@@ -255,7 +255,8 @@ SkinGetBonePositionsToTable(RpClump *clump, RwV3d *boneTable)
parent = stack[sp--];
else
parent = i;
- assert(parent >= 0 && parent < numBones);
+
+ //assert(parent >= 0 && parent < numBones);
}
}
@@ -263,7 +264,7 @@ RpHAnimAnimation*
HAnimAnimationCreateForHierarchy(RpHAnimHierarchy *hier)
{
int i;
-#ifdef FIX_BUGS
+#if defined FIX_BUGS || defined LIBRW
int numNodes = hier->numNodes*2; // you're supposed to have at least two KFs per node
#else
int numNodes = hier->numNodes;
@@ -277,7 +278,7 @@ HAnimAnimationCreateForHierarchy(RpHAnimHierarchy *hier)
frame->q.real = 1.0f;
frame->q.imag.x = frame->q.imag.y = frame->q.imag.z = 0.0f;
frame->t.x = frame->t.y = frame->t.z = 0.0f;
-#ifdef FIX_BUGS
+#if defined FIX_BUGS || defined LIBRW
// times are subtracted and divided giving NaNs
// so they can't both be 0
frame->time = i/hier->numNodes;
@@ -483,7 +484,7 @@ CameraSize(RwCamera * camera, RwRect * rect,
RwRaster *zRaster;
// BUG: game just changes camera raster's sizes, but this is a hack
-#ifdef FIX_BUGS
+#if defined FIX_BUGS || defined LIBRW
/*
* Destroy rasters...
*/