[Opentnl-cvs] tnl/zap moveObject.cpp,1.4,1.5
Brought to you by:
mark_frohnmayer,
s_alanet
From: Ben G. <s_a...@us...> - 2004-04-22 05:26:47
|
Update of /cvsroot/opentnl/tnl/zap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25886/zap Modified Files: moveObject.cpp Log Message: Tweaked sound gain. Index: moveObject.cpp =================================================================== RCS file: /cvsroot/opentnl/tnl/zap/moveObject.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** moveObject.cpp 20 Apr 2004 19:25:48 -0000 1.4 --- moveObject.cpp 22 Apr 2004 05:22:32 -0000 1.5 *************** *** 299,303 **** { // Make a noise... ! SFXObject::play(SFXBounceWall, collisionPoint, Point()); Color bumpC(scale/3, scale/3, scale); --- 299,303 ---- { // Make a noise... ! SFXObject::play(SFXBounceWall, collisionPoint, Point(), getMin(1.0f, scale - 0.25f)); Color bumpC(scale/3, scale/3, scale); *************** *** 339,343 **** shipHit->mMoveState[stateIndex].vel += collisionVector * (v2f - v2i); ! SFXObject::play(SFXBounceObject, shipHit->mMoveState[stateIndex].pos, Point()); } --- 339,344 ---- shipHit->mMoveState[stateIndex].vel += collisionVector * (v2f - v2i); ! if(v1i > 0.25) ! SFXObject::play(SFXBounceObject, shipHit->mMoveState[stateIndex].pos, Point()); } |