From 0d2a1bac36880fac4df5ddb2d4c663f215b25222 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 5 Feb 2025 15:33:27 +0100 Subject: [PATCH] Revert ""kill" seenames" This reverts commit 93a1a432d7b0eb926fd83c189219017421808da4. --- src/d_netcmd.c | 6 +++--- src/doomdef.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 57ba1b783..75daeeb08 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -263,8 +263,8 @@ consvar_t cv_competitionboxes = {"competitionboxes", "Random", CV_NETVAR|CV_CHEA #ifdef SEENAMES static CV_PossibleValue_t seenames_cons_t[] = {{0, "Off"}, {1, "Colorless"}, {2, "Team"}, {3, "Ally/Foe"}, {0, NULL}}; consvar_t cv_seenames = {"seenames", "Off", CV_SAVE, seenames_cons_t, 0, 0, NULL, NULL, 0, 0, NULL}; +consvar_t cv_allowseenames = {"allowseenames", "No", CV_NETVAR, CV_YesNo, NULL, 0, NULL, NULL, 0, 0, NULL}; #endif -consvar_t cv_allowseenames = {"allowseenames", "No", CV_NETVAR, CV_YesNo, NULL, 0, NULL, NULL, 0, 0, NULL}; // bruh // these are just meant to be saved to the config consvar_t cv_playername = {"name", "Sonic", CV_SAVE|CV_CALL|CV_NOINIT, NULL, Name_OnChange, 0, NULL, NULL, 0, 0, NULL}; @@ -775,9 +775,9 @@ void D_RegisterServerCommands(void) CV_RegisterVar(&cv_showping); CV_RegisterVar(&cv_pingmeasurement); -//#ifdef SEENAMES // bruh again +#ifdef SEENAMES CV_RegisterVar(&cv_allowseenames); -//#endif +#endif CV_RegisterVar(&cv_dummyconsvar); diff --git a/src/doomdef.h b/src/doomdef.h index 3ea9fbb63..297128269 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -606,7 +606,7 @@ extern const char *compdate, *comptime, *comprevision, *compbranch; //#define DUMPCONSISTENCY /// See name of player in your crosshair -//#define SEENAMES +#define SEENAMES /// Allow loading of savegames between different versions of the game. /// \note XMOD port.