mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 01:47:13 +00:00
Converted the old style casts to c++ style casts.
This commit is contained in:
parent
f0a3ea74e3
commit
6b7c9703f3
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user