commit 8e10a0e003a33a2df47181e3ef17e1bd380fca1c (HEAD -> master) Author: Peter Denison Date: Thu Sep 7 18:06:57 2023 +0100 Now the Borg is integrated, remove the separate version information for it diff --git a/src/borg/borg1.c b/src/borg/borg1.c index 27c801f00..1cf1224a3 100644 --- a/src/borg/borg1.c +++ b/src/borg/borg1.c @@ -9,8 +9,6 @@ * This file contains various low level variables and routines. */ - /* Date of the last change */ -char borg_engine_date[] = __DATE__; bool borg_init_failure = false; bool borg_lunal_mode; diff --git a/src/borg/borg1.h b/src/borg/borg1.h index 8b9b0c432..a876663f1 100644 --- a/src/borg/borg1.h +++ b/src/borg/borg1.h @@ -1217,8 +1217,6 @@ extern bool borg_borg_message; /* List borg messages or not */ extern bool borg_graphics; /* List borg messages or not */ extern bool borg_confirm_target; -extern char borg_engine_date[]; /* last update */ - /* * Use a simple internal random number generator */ diff --git a/src/borg/borg9.c b/src/borg/borg9.c index 0289f9ee6..dce555b2e 100644 --- a/src/borg/borg9.c +++ b/src/borg/borg9.c @@ -32,6 +32,7 @@ #include "../ui-input.h" #include "../ui-output.h" #include "../trap.h" +#include "../buildid.h" #include "borg1.h" #include "borg2.h" @@ -160,7 +161,7 @@ static void borg_log_death(void) file_putf(borg_log_file, "Exp: %lu Gold: %lu Turn: %lu\n", (long)player->max_exp + (100 * player->max_depth), (long)player->au, (long)turn); file_putf(borg_log_file, "Killed on level: %d (max. %d) by %s\n", player->depth, player->max_depth, player->died_from); - file_putf(borg_log_file, "Borg Compile Date: %s\n", borg_engine_date); + file_putf(borg_log_file, "Integrated Borg: %s\n", buildver); file_put(borg_log_file, "----------\n\n"); @@ -187,7 +188,7 @@ static void borg_log_death_data(void) (void)time(&death_time); /* dump stuff for easy import to database */ - file_putf(borg_log_file, "%s, %s, %s, %d, %d, %s\n", borg_engine_date, player->race->name, + file_putf(borg_log_file, "%s, %s, %s, %d, %d, %s\n", buildver, player->race->name, player->class->name, player->lev, player->depth, player->died_from); @@ -4784,7 +4785,7 @@ void borg_write_map(bool ask) file_putf(borg_map_file, "Exp: %lu Gold: %lu Turn: %lu\n", (long)(player->max_exp + (100 * player->max_depth)), (long)player->au, (long)turn); file_putf(borg_map_file, "Killed on level: %d (max. %d) by %s\n\n", player->depth, player->max_depth, player->died_from); - file_putf(borg_map_file, "Borg Compile Date: %s\n", borg_engine_date); + file_putf(borg_map_file, "Integrated Borg: %s\n", buildver); line = mem_zalloc((DUNGEON_WID + 1) * sizeof(wchar_t)); ch_line = mem_zalloc((DUNGEON_WID + 1) * sizeof(char)); @@ -5804,7 +5805,6 @@ void do_cmd_borg(void) Term_putstr(2, i++, -1, COLOUR_WHITE, "Command '@' Borg LOS."); Term_putstr(42, i, -1, COLOUR_WHITE, "Command 'w' My Swap Weapon."); Term_putstr(2, i++, -1, COLOUR_WHITE, "Command 'q' Auto stop on level."); - Term_putstr(42, i, -1, COLOUR_WHITE, "Command 'v' Version stamp."); Term_putstr(2, i++, -1, COLOUR_WHITE, "Command 'd' Dump spell info."); Term_putstr(42, i, -1, COLOUR_WHITE, "Command 'h' Borg_Has function."); Term_putstr(2, i++, -1, COLOUR_WHITE, "Command '$' Reload Borg.txt."); @@ -7132,13 +7132,6 @@ void do_cmd_borg(void) break; } - /* Version of the game */ - case 'v': - case 'V': - { - msg("APWBorg Version: %s", borg_engine_date); - break; - } /* Command: Display all known info on item */ case 'o': case 'O':