| 1 |
commit 8e10a0e003a33a2df47181e3ef17e1bd380fca1c (HEAD -> master) |
| 2 |
Author: Peter Denison <[email protected]> |
| 3 |
Date: Thu Sep 7 18:06:57 2023 +0100 |
| 4 |
|
| 5 |
Now the Borg is integrated, remove the separate version information for it |
| 6 |
|
| 7 |
diff --git a/src/borg/borg1.c b/src/borg/borg1.c |
| 8 |
index 27c801f00..1cf1224a3 100644 |
| 9 |
--- a/src/borg/borg1.c |
| 10 |
+++ b/src/borg/borg1.c |
| 11 |
@@ -9,8 +9,6 @@ |
| 12 |
* This file contains various low level variables and routines. |
| 13 |
*/ |
| 14 |
|
| 15 |
- /* Date of the last change */ |
| 16 |
-char borg_engine_date[] = __DATE__; |
| 17 |
bool borg_init_failure = false; |
| 18 |
|
| 19 |
bool borg_lunal_mode; |
| 20 |
diff --git a/src/borg/borg1.h b/src/borg/borg1.h |
| 21 |
index 8b9b0c432..a876663f1 100644 |
| 22 |
--- a/src/borg/borg1.h |
| 23 |
+++ b/src/borg/borg1.h |
| 24 |
@@ -1217,8 +1217,6 @@ extern bool borg_borg_message; /* List borg messages or not */ |
| 25 |
extern bool borg_graphics; /* List borg messages or not */ |
| 26 |
extern bool borg_confirm_target; |
| 27 |
|
| 28 |
-extern char borg_engine_date[]; /* last update */ |
| 29 |
- |
| 30 |
/* |
| 31 |
* Use a simple internal random number generator |
| 32 |
*/ |
| 33 |
diff --git a/src/borg/borg9.c b/src/borg/borg9.c |
| 34 |
index 0289f9ee6..dce555b2e 100644 |
| 35 |
--- a/src/borg/borg9.c |
| 36 |
+++ b/src/borg/borg9.c |
| 37 |
@@ -32,6 +32,7 @@ |
| 38 |
#include "../ui-input.h" |
| 39 |
#include "../ui-output.h" |
| 40 |
#include "../trap.h" |
| 41 |
+#include "../buildid.h" |
| 42 |
|
| 43 |
#include "borg1.h" |
| 44 |
#include "borg2.h" |
| 45 |
@@ -160,7 +161,7 @@ static void borg_log_death(void) |
| 46 |
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); |
| 47 |
file_putf(borg_log_file, "Killed on level: %d (max. %d) by %s\n", player->depth, player->max_depth, player->died_from); |
| 48 |
|
| 49 |
- file_putf(borg_log_file, "Borg Compile Date: %s\n", borg_engine_date); |
| 50 |
+ file_putf(borg_log_file, "Integrated Borg: %s\n", buildver); |
| 51 |
|
| 52 |
file_put(borg_log_file, "----------\n\n"); |
| 53 |
|
| 54 |
@@ -187,7 +188,7 @@ static void borg_log_death_data(void) |
| 55 |
(void)time(&death_time); |
| 56 |
|
| 57 |
/* dump stuff for easy import to database */ |
| 58 |
- file_putf(borg_log_file, "%s, %s, %s, %d, %d, %s\n", borg_engine_date, player->race->name, |
| 59 |
+ file_putf(borg_log_file, "%s, %s, %s, %d, %d, %s\n", buildver, player->race->name, |
| 60 |
player->class->name, player->lev, player->depth, player->died_from); |
| 61 |
|
| 62 |
|
| 63 |
@@ -4784,7 +4785,7 @@ void borg_write_map(bool ask) |
| 64 |
|
| 65 |
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); |
| 66 |
file_putf(borg_map_file, "Killed on level: %d (max. %d) by %s\n\n", player->depth, player->max_depth, player->died_from); |
| 67 |
- file_putf(borg_map_file, "Borg Compile Date: %s\n", borg_engine_date); |
| 68 |
+ file_putf(borg_map_file, "Integrated Borg: %s\n", buildver); |
| 69 |
|
| 70 |
line = mem_zalloc((DUNGEON_WID + 1) * sizeof(wchar_t)); |
| 71 |
ch_line = mem_zalloc((DUNGEON_WID + 1) * sizeof(char)); |
| 72 |
@@ -5804,7 +5805,6 @@ void do_cmd_borg(void) |
| 73 |
Term_putstr(2, i++, -1, COLOUR_WHITE, "Command '@' Borg LOS."); |
| 74 |
Term_putstr(42, i, -1, COLOUR_WHITE, "Command 'w' My Swap Weapon."); |
| 75 |
Term_putstr(2, i++, -1, COLOUR_WHITE, "Command 'q' Auto stop on level."); |
| 76 |
- Term_putstr(42, i, -1, COLOUR_WHITE, "Command 'v' Version stamp."); |
| 77 |
Term_putstr(2, i++, -1, COLOUR_WHITE, "Command 'd' Dump spell info."); |
| 78 |
Term_putstr(42, i, -1, COLOUR_WHITE, "Command 'h' Borg_Has function."); |
| 79 |
Term_putstr(2, i++, -1, COLOUR_WHITE, "Command '$' Reload Borg.txt."); |
| 80 |
@@ -7132,13 +7132,6 @@ void do_cmd_borg(void) |
| 81 |
break; |
| 82 |
} |
| 83 |
|
| 84 |
- /* Version of the game */ |
| 85 |
- case 'v': |
| 86 |
- case 'V': |
| 87 |
- { |
| 88 |
- msg("APWBorg Version: %s", borg_engine_date); |
| 89 |
- break; |
| 90 |
- } |
| 91 |
/* Command: Display all known info on item */ |
| 92 |
case 'o': |
| 93 |
case 'O': |