X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FObjects%2FPerson.cpp;h=891646ab830aef23d6852817c6e843ec3cb970ab;hp=1ac664c896b2dab753eab5890b0e4ce61d7e9715;hb=4da2d867e24687b29e1f812980664ee1493ad416;hpb=9ab405b6543dfd6ea0eef8e5e80d76ffa9d4dd04 diff --git a/Source/Objects/Person.cpp b/Source/Objects/Person.cpp index 1ac664c..891646a 100644 --- a/Source/Objects/Person.cpp +++ b/Source/Objects/Person.cpp @@ -2177,13 +2177,9 @@ void Person::DoAnimations() } if (animTarget == jumpupanim || animTarget == jumpdownanim || isFlip()) { float gLoc[3]; - float vel[3]; gLoc[0] = coords.x; gLoc[1] = coords.y; gLoc[2] = coords.z; - vel[0] = velocity.x; - vel[1] = velocity.y; - vel[2] = velocity.z; if (id == 0) { OPENAL_3D_SetAttributes(channels[whooshsound], gLoc); @@ -4800,13 +4796,9 @@ void Person::DoStuff() if (animTarget == jumpupanim || animTarget == jumpdownanim || isFlip()) { float gLoc[3]; - float vel[3]; gLoc[0] = coords.x; gLoc[1] = coords.y; gLoc[2] = coords.z; - vel[0] = velocity.x; - vel[1] = velocity.y; - vel[2] = velocity.z; if (id == 0) { OPENAL_3D_SetAttributes(channels[whooshsound], gLoc); @@ -7601,7 +7593,7 @@ void Person::doAI() if (aitype == pathfindtype) { if (finalpathfindpoint == -1) { float closestdistance; - float tempdist; + float tempdist = 0.0f; int closest; XYZ colpoint; closest = -1; @@ -7631,7 +7623,7 @@ void Person::doAI() } if (targetpathfindpoint == -1) { float closestdistance; - float tempdist; + float tempdist = 0.0f; int closest; XYZ colpoint; closest = -1;