From: <ja...@us...> - 2006-11-27 03:59:33
|
Revision: 10802 http://svn.sourceforge.net/vegastrike/?rev=10802&view=rev Author: jackS Date: 2006-11-26 19:59:33 -0800 (Sun, 26 Nov 2006) Log Message: ----------- Clamping of beam radius at beam init. Should help avoid "fat-beam" problems with larger SIM_ATOMs Modified Paths: -------------- trunk/vegastrike/src/cmd/beam_generic.cpp Modified: trunk/vegastrike/src/cmd/beam_generic.cpp =================================================================== --- trunk/vegastrike/src/cmd/beam_generic.cpp 2006-11-26 03:30:19 UTC (rev 10801) +++ trunk/vegastrike/src/cmd/beam_generic.cpp 2006-11-27 03:59:33 UTC (rev 10802) @@ -74,6 +74,9 @@ curlength = SIMULATION_ATOM*speed; lastthick=0; curthick = SIMULATION_ATOM*radialspeed; + if(curthick>thickness){ //clamp to max thickness - needed for large simulation atoms + curthick=thickness; + } //int numvertex=mymax(48,(doscoop?(4*radslices+1)*longslices*4:0)); static GFXVertexList *_vlist = 0; if (!_vlist) { |