1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Fix MSVC build broken by 34d32ce

`round` -> `myround`
Remove superflous `floor` calls
This commit is contained in:
SmallJoker 2017-04-17 13:49:48 +02:00
parent 04cc9de8f2
commit 6120251320
3 changed files with 5 additions and 5 deletions

View file

@ -616,9 +616,9 @@ inline const char *bool_to_cstr(bool val)
inline const std::string duration_to_string(int sec)
{
int min = floor(sec / 60);
int min = sec / 60;
sec %= 60;
int hour = floor(min / 60);
int hour = min / 60;
min %= 60;
std::stringstream ss;