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)


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to