mail[Wesnoth-commits] r34250 - /trunk/src/soundsource.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on March 29, 2009 - 22:29:
Author: mordante
Date: Sun Mar 29 22:29:55 2009
New Revision: 34250

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34250&view=rev
Log:
Converted the old style casts to c++ style casts.

Modified:
    trunk/src/soundsource.cpp

Modified: trunk/src/soundsource.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/soundsource.cpp?rev=34250&r1=34249&r2=34250&view=diff
==============================================================================
--- trunk/src/soundsource.cpp (original)
+++ trunk/src/soundsource.cpp Sun Mar 29 22:29:55 2009
@@ -203,7 +203,8 @@
                return 0;
        }
 
-       return static_cast<int>(( ( (distance - range_) / (double) 
faderange_) * DISTANCE_SILENT));
+       return static_cast<int>((((distance - range_)
+                       / static_cast<double>(faderange_)) * 
DISTANCE_SILENT));
 }
 
 void positional_source::add_location(const map_location &loc)




Related Messages


Powered by MHonArc, Updated Sun Mar 29 22:40:41 2009