[wpdev-commits] wolfpack npc.cpp,1.97,1.98
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-07-05 19:59:46
|
Update of /cvsroot/wpdev/wolfpack In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24833 Modified Files: npc.cpp Log Message: Compilefix Index: npc.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/npc.cpp,v retrieving revision 1.97 retrieving revision 1.98 diff -C2 -d -r1.97 -r1.98 *** npc.cpp 19 Jun 2004 02:06:51 -0000 1.97 --- npc.cpp 5 Jul 2004 19:59:38 -0000 1.98 *************** *** 981,985 **** float cNPC::pathHeuristic( const Coord_cl& source, const Coord_cl& destination ) { ! return ( float ) ( sqrt( pow( source.x - destination.x, 2 ) + pow( source.y - destination.y, 2 ) + pow( ( source.z - destination.z ) / 5.0f, 2 ) ) ); } --- 981,985 ---- float cNPC::pathHeuristic( const Coord_cl& source, const Coord_cl& destination ) { ! return ( float ) ( sqrt( pow( (float)(source.x - destination.x), 2 ) + pow( (float)(source.y - destination.y), 2 ) + pow( ( source.z - destination.z ) / 5.0f, 2 ) ) ); } |