Converted the old style casts to c++ style casts.

This commit is contained in:
Mark de Wever 2009-03-29 20:29:55 +00:00
parent f0a3ea74e3
commit 6b7c9703f3

View File

@ -203,7 +203,8 @@ int positional_source::calculate_volume(const map_location &loc, const display &
return 0; 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) void positional_source::add_location(const map_location &loc)