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:
parent
04cc9de8f2
commit
6120251320
3 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue