[wpdev-commits] wolfpack coord.cpp,1.60,1.61 inlines.h,1.28,1.29
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-16 01:41:20
|
Update of /cvsroot/wpdev/wolfpack In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5162 Modified Files: coord.cpp inlines.h Log Message: New Line Of Sight Index: inlines.h =================================================================== RCS file: /cvsroot/wpdev/wolfpack/inlines.h,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** inlines.h 16 Sep 2004 01:40:17 -0000 1.28 --- inlines.h 16 Sep 2004 01:41:02 -0000 1.29 *************** *** 65,69 **** } ! inline int round(double n) { double f = n - floor(n); if (f >= 0.50) { --- 65,69 ---- } ! inline int roundInt(double n) { double f = n - floor(n); if (f >= 0.50) { Index: coord.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/coord.cpp,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -d -r1.60 -r1.61 *** coord.cpp 16 Sep 2004 01:40:17 -0000 1.60 --- coord.cpp 16 Sep 2004 01:41:02 -0000 1.61 *************** *** 79,85 **** while (isBetween(currentX, target.x, origin.x) && isBetween(currentY, target.y, origin.y) && isBetween(currentZ, target.z, origin.z)) { ! pos.x = round(currentX); ! pos.y = round(currentY); ! pos.z = round(currentZ); if (pointList.count() == 0 || pointList.last() != pos) { --- 79,85 ---- while (isBetween(currentX, target.x, origin.x) && isBetween(currentY, target.y, origin.y) && isBetween(currentZ, target.z, origin.z)) { ! pos.x = roundInt(currentX); ! pos.y = roundInt(currentY); ! pos.z = roundInt(currentZ); if (pointList.count() == 0 || pointList.last() != pos) { |