[Gcblue-commits] gcb_wx/include/common simmath.h,1.32,1.33
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-11-27 22:21:38
|
Update of /cvsroot/gcblue/gcb_wx/include/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6732/include/common Modified Files: simmath.h Log Message: - Added waypoint drag edit feature to gui. User can adjust waypoints on map screen by clicking and dragging - Fixed sound disable to include music. Previously sound failure would disable sound effects, but then play music leading to a crash. - Added random feature targeting to missiles. Missiles should now lock on to a random feature of the target instead of always hitting the center. Index: simmath.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/common/simmath.h,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** simmath.h 10 Sep 2005 21:48:06 -0000 1.32 --- simmath.h 27 Nov 2005 22:21:28 -0000 1.33 *************** *** 51,55 **** float x; float y; ! float DistanceTo(const tcPoint& p) {return (sqrtf((p.x-x)*(p.x-x)+(p.y-y)*(p.y-y)));} tcPoint() : x(0), y(0) {} --- 51,55 ---- float x; float y; ! float DistanceTo(const tcPoint& p) const {return (sqrtf((p.x-x)*(p.x-x)+(p.y-y)*(p.y-y)));} tcPoint() : x(0), y(0) {} |