Skip to content
Snippets Groups Projects
Commit 91a34575 authored by Riku Salminen's avatar Riku Salminen
Browse files

Declared the cvar in netcmd to get rid of warnings

parent 8f001b63
Branches
No related tags found
No related merge requests found
...@@ -374,6 +374,7 @@ consvar_t cv_sleep = CVAR_INIT ("cpusleep", "1", CV_SAVE, sleeping_cons_t, NULL) ...@@ -374,6 +374,7 @@ consvar_t cv_sleep = CVAR_INIT ("cpusleep", "1", CV_SAVE, sleeping_cons_t, NULL)
static CV_PossibleValue_t perfstats_cons_t[] = { static CV_PossibleValue_t perfstats_cons_t[] = {
{0, "Off"}, {1, "Rendering"}, {2, "Logic"}, {3, "ThinkFrame"}, {0, NULL}}; {0, "Off"}, {1, "Rendering"}, {2, "Logic"}, {3, "ThinkFrame"}, {0, NULL}};
consvar_t cv_perfstats = CVAR_INIT ("perfstats", "Off", 0, perfstats_cons_t, NULL); consvar_t cv_perfstats = CVAR_INIT ("perfstats", "Off", 0, perfstats_cons_t, NULL);
consvar_t cv_freedemocamera = CVAR_INIT("freedemocamera", "Off", CV_SAVE, CV_OnOff, NULL);
char timedemo_name[256]; char timedemo_name[256];
boolean timedemo_csv; boolean timedemo_csv;
......
...@@ -121,6 +121,8 @@ extern boolean timedemo_csv; ...@@ -121,6 +121,8 @@ extern boolean timedemo_csv;
extern char timedemo_csv_id[256]; extern char timedemo_csv_id[256];
extern boolean timedemo_quit; extern boolean timedemo_quit;
extern consvar_t cv_freedemocamera;
typedef enum typedef enum
{ {
XD_NAMEANDCOLOR = 1, XD_NAMEANDCOLOR = 1,
......
...@@ -39,7 +39,6 @@ tic_t leveltime; ...@@ -39,7 +39,6 @@ tic_t leveltime;
// The entries will behave like both the head and tail of the lists. // The entries will behave like both the head and tail of the lists.
thinker_t thlist[NUM_THINKERLISTS]; thinker_t thlist[NUM_THINKERLISTS];
consvar_t cv_freedemocamera = {"freedemocamera", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
void Command_Numthinkers_f(void) void Command_Numthinkers_f(void)
{ {
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#endif #endif
extern tic_t leveltime; extern tic_t leveltime;
extern consvar_t cv_freedemocamera;
// Called by G_Ticker. Carries out all thinking of enemies and players. // Called by G_Ticker. Carries out all thinking of enemies and players.
void Command_Numthinkers_f(void); void Command_Numthinkers_f(void);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment