Skip to content

Commit 1dd4202

Browse files
committed
Fix a build error
1 parent 4a7e361 commit 1dd4202

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

‎common/include/common/version/version.h‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pragma once
22

3+
#include <functional>
34
#include <format>
45
#include <string>
56

@@ -85,6 +86,3 @@ inline const std::string& get_build_time() {
8586
});
8687
return res;
8788
}
88-
89-
inline const std::string& BUILD_DATE_STR = get_build_date();
90-
inline const std::string& BUILD_TIME_STR = get_build_time();

‎game_patch/multi/dedi_cfg.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,7 @@ void print_alpine_dedicated_server_config_info(std::string& output, bool verbose
18171817
std::format_to(iter, "\n---- Core configuration ----\n");
18181818
std::format_to(iter, " Port: {} - UDP\n", netgame.server_addr.port);
18191819
std::format_to(iter, " Name: {}\n", netgame.name);
1820-
std::format_to(iter, " Version: {} - {}\n", VERSION_STR, BUILD_DATE_STR);
1820+
std::format_to(iter, " Version: {} - {}\n", VERSION_STR, get_build_date());
18211821
if (!remote) {
18221822
std::format_to(iter, " Uptime: {}\n", get_uptime_from(g_process_startup_time));
18231823
std::format_to(iter, " Password: {}\n", netgame.password);

‎game_patch/multi/server.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -996,8 +996,8 @@ bool handle_server_chat_command(std::string_view server_command, rf::Player* sen
996996
"This server is powered by Alpine Faction {} ({}) - {} {}",
997997
VERSION_STR,
998998
VERSION_CODE,
999-
BUILD_DATE_STR,
1000-
BUILD_TIME_STR
999+
get_build_date(),
1000+
get_build_time()
10011001
),
10021002
sender
10031003
);

0 commit comments

Comments
 (0)