diff options
author | SmallJoker <mk939@ymail.com> | 2017-04-17 13:49:48 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2017-04-17 14:02:26 +0200 |
commit | 61202513208b23d3e7a2a91d10aba154e6cbf352 (patch) | |
tree | 05d510be4eb3d86a517db9f816709df742631dfa /src/util | |
parent | 04cc9de8f2fbcb11f133c88f02fc11504b3ea6f3 (diff) | |
download | minetest-61202513208b23d3e7a2a91d10aba154e6cbf352.tar.gz minetest-61202513208b23d3e7a2a91d10aba154e6cbf352.tar.bz2 minetest-61202513208b23d3e7a2a91d10aba154e6cbf352.zip |
Fix MSVC build broken by 34d32ce
`round` -> `myround`
Remove superflous `floor` calls
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/string.h b/src/util/string.h index c155d2f4a..1a0b9f60d 100644 --- a/src/util/string.h +++ b/src/util/string.h @@ -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; |