mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-16 09:01:41 +00:00
Client: Use new version file
This commit is contained in:
parent
65b949902c
commit
b7d643be2f
2 changed files with 2 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue