test kill SEENAMES without removing its netvar

why is this even defined
This commit is contained in:
Alug committed 2024-09-03 12:31:13 +02:00
1 parent 32ee5a8a61
commit aa6a011bef
3 files changed
+5 -5

No files matched your search

+1 -3
View File
@@ -267,8 +267,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};
// 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};
@@ -819,9 +819,7 @@ void D_RegisterServerCommands(void)
CV_RegisterVar(&cv_showping);
CV_RegisterVar(&cv_pingmeasurement);
#ifdef SEENAMES
CV_RegisterVar(&cv_allowseenames);
#endif
CV_RegisterVar(&cv_dummyconsvar);
+3 -1
View File
@@ -38,8 +38,10 @@ extern consvar_t cv_skin4;
extern consvar_t cv_splitplayers;
#ifdef SEENAMES
extern consvar_t cv_seenames, cv_allowseenames;
extern consvar_t cv_seenames;
#endif
extern consvar_t cv_allowseenames;
extern consvar_t cv_usemouse;
//WTF
extern consvar_t cv_mouseturn;
+1 -1
View File
@@ -596,7 +596,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.