X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FSkeleton.cpp;h=35fb1f795d6fb054c988d6e242a919c38378f8fd;hb=5931bd1edf827e8645f89b5a4a16585cb25bc6e1;hp=115b1ccbf7006a34343f9be1fd08d814cfc1b808;hpb=38d21f685e669429419970d4bb7e7c806592e131;p=lugaru.git diff --git a/Source/Skeleton.cpp b/Source/Skeleton.cpp index 115b1cc..35fb1f7 100644 --- a/Source/Skeleton.cpp +++ b/Source/Skeleton.cpp @@ -343,7 +343,10 @@ float Skeleton::DoConstraints(XYZ *coords, float *scale) if (tutoriallevel != 1 || id == 0) if (findLengthfast(&bounceness) > 8000 && breaking) { - objects.model[k].MakeDecal(breakdecal, DoRotation(temp - objects.position[k], 0, -objects.yaw[k], 0), .4, .5, Random() % 360); + // FIXME: this crashes because k is not initialized! + // to reproduce, type 'wolfie' in console and play a while + // I'll just comment it out for now + //objects.model[k].MakeDecal(breakdecal, DoRotation(temp - objects.position[k], 0, -objects.yaw[k], 0), .4, .5, Random() % 360); Sprite::MakeSprite(cloudsprite, joints[i].position * (*scale) + *coords, joints[i].velocity * .06, 1, 1, 1, 4, .2); breaking = false; camerashake += .6;