diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2021-01-13 18:18:26 +0100 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2021-01-13 18:18:26 +0100 |
commit | d63e3f155995f2b82cee1f19bcf5c0f00bda491a (patch) | |
tree | fadc7c4d71f54a2c6a2add1efb1b741b6f9775d5 /src/rw/RwHelper.cpp | |
parent | Merge branch 'lcs' of https://github.com/GTAmodding/re3 into lcs (diff) | |
parent | remove scriptspath from premake (diff) | |
download | re3-d63e3f155995f2b82cee1f19bcf5c0f00bda491a.tar re3-d63e3f155995f2b82cee1f19bcf5c0f00bda491a.tar.gz re3-d63e3f155995f2b82cee1f19bcf5c0f00bda491a.tar.bz2 re3-d63e3f155995f2b82cee1f19bcf5c0f00bda491a.tar.lz re3-d63e3f155995f2b82cee1f19bcf5c0f00bda491a.tar.xz re3-d63e3f155995f2b82cee1f19bcf5c0f00bda491a.tar.zst re3-d63e3f155995f2b82cee1f19bcf5c0f00bda491a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/rw/RwHelper.cpp | 9 |
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... */ |