From: <wel...@us...> - 2010-06-02 21:30:18
|
Revision: 5955 http://planeshift.svn.sourceforge.net/planeshift/?rev=5955&view=rev Author: weltall2 Date: 2010-06-02 21:30:11 +0000 (Wed, 02 Jun 2010) Log Message: ----------- little fix Modified Paths: -------------- trunk/src/server/spawnmanager.cpp Modified: trunk/src/server/spawnmanager.cpp =================================================================== --- trunk/src/server/spawnmanager.cpp 2010-06-02 21:23:42 UTC (rev 5954) +++ trunk/src/server/spawnmanager.cpp 2010-06-02 21:30:11 UTC (rev 5955) @@ -1257,7 +1257,7 @@ else if (type=='L') { float length = sqrt((rx2-rx1)*(rx2-rx1) + (ry2-ry1)*(ry2-ry1) + (rz2-rz1)*(rz2-rz1)); - if(length > 0.5) + if(radius > 0.5) area = length*radius*2 + radius * radius * PI; // Area of length and round area at end. else area = lenght; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |