Client: Use new version file

This commit is contained in:
unknown 2022-04-05 17:50:05 -04:00
parent 65b949902c
commit b7d643be2f
2 changed files with 2 additions and 6 deletions

View file

@ -176,7 +176,7 @@ noref void(float apiver, string enginename, float enginever) CSQC_Init =
//
// get the build date
//
float file = fopen("build_date.txt", FILE_READ);
float file = fopen("version.txt", FILE_READ);
if (file != -1) {
build_datetime = fgets(file);

View file

@ -1847,11 +1847,7 @@ void() Draw_Menu =
|| in_menu == MENU_CUSTOMS || in_menu == MENU_SETTINGS) {
string vers_string;
if (cvar("cl_showbuildtime") > 0) {
vers_string = build_datetime;
} else {
vers_string = VERSION_STRING;
}
vers_string = build_datetime;
drawstring([(0.975*g_width - stringwidth(vers_string, 0, [0.03*g_height, 0.03*g_height, 0])), 0.025*g_height, 0], vers_string, [g_height * 0.03, g_height * 0.03, 1], [0.8, 0.8, 0.8], 1, 0);
}