Skip to content

Commit c80020f

Browse files
committed
Fix ~ appearing in file name
1 parent 819a077 commit c80020f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/include/map.hpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pragma once
22
#include <fmt/core.h>
3+
#include <vector>
34

45
namespace Map {
56

@@ -79,8 +80,14 @@ struct Coordinates {
7980
break;
8081
}
8182

82-
return fmt::format("{}.{}.{} ~> {}.{}.{} ({})", minX, minZ, minY, maxX,
83-
maxZ, maxY, str_orient);
83+
#ifndef _WINDOWS
84+
const std::string format_str = "{}.{}.{} ~> {}.{}.{} ({})";
85+
#else
86+
const std::string format_str = "{}.{}.{}.{}.{}.{}.{}";
87+
#endif
88+
89+
return fmt::format(format_str, minX, minZ, minY, maxX, maxZ, maxY,
90+
str_orient);
8491
}
8592

8693
void rotate() {

0 commit comments

Comments
 (0)