summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-06-29 22:26:17 +0500
committeruntodesu <kirill@untode.su>2025-06-29 22:26:17 +0500
commit14e129d3043a2ab4ea6604441a2d076e775432bf (patch)
treea6d2973838162a3f72fa65e54499bf53a7e5ecc9 /src
parente8f10099c58b45e5fb251455ce3b4b1caa827afd (diff)
downloadvoxelius-14e129d3043a2ab4ea6604441a2d076e775432bf.tar.bz2
voxelius-14e129d3043a2ab4ea6604441a2d076e775432bf.zip
Update gitignore and version.hh
Diffstat (limited to 'src')
-rw-r--r--src/core/version.cc.in2
-rw-r--r--src/core/version.hh2
-rw-r--r--src/game/client/main_menu.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/core/version.cc.in b/src/core/version.cc.in
index 0183ec0..0c255c9 100644
--- a/src/core/version.cc.in
+++ b/src/core/version.cc.in
@@ -9,4 +9,4 @@ const unsigned long project_version_patch = ${PROJECT_VERSION_PATCH};
const unsigned long project_version_tweak = ${PROJECT_VERSION_TWEAK};
// clang-format on
-const std::string project_version_string = "${PROJECT_VERSION}";
+const char* project_version_string = "${PROJECT_VERSION}";
diff --git a/src/core/version.hh b/src/core/version.hh
index 2061c31..fc4d48a 100644
--- a/src/core/version.hh
+++ b/src/core/version.hh
@@ -7,6 +7,6 @@ extern const unsigned long project_version_minor;
extern const unsigned long project_version_patch;
extern const unsigned long project_version_tweak;
-extern const std::string project_version_string;
+extern const char* project_version_string;
#endif /* CORE_VERSION_HH */
diff --git a/src/game/client/main_menu.cc b/src/game/client/main_menu.cc
index 39763ec..e5cb522 100644
--- a/src/game/client/main_menu.cc
+++ b/src/game/client/main_menu.cc
@@ -152,7 +152,7 @@ void main_menu::layout(void)
ImGui::PushFont(globals::font_debug);
ImGui::SetCursorScreenPos(ImVec2(padding.x + spacing.x, window_size.y - globals::font_debug->FontSize - padding.y - spacing.y));
- ImGui::Text("Voxelius %s", project_version_string.c_str());
+ ImGui::Text("Voxelius %s", project_version_string);
ImGui::PopFont();
}