From dcd13e4230c3b680fe76eab07ef640e6d857e018 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 8 Apr 2022 20:07:45 +0900 Subject: [PATCH] [qw] Fix an extern in a C file Rather worrying finding one. I guess I didn't feel like finding a header for the declaration at time time. --- qw/include/client.h | 2 ++ qw/source/cl_main.c | 1 - qw/source/cl_parse.c | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/qw/include/client.h b/qw/include/client.h index 57b87f514..dbd0f35d0 100644 --- a/qw/include/client.h +++ b/qw/include/client.h @@ -280,6 +280,8 @@ extern struct cvar_s *skin; extern struct cvar_s *cl_fb_players; +extern struct cvar_s *hud_scoreboard_uid; + extern client_state_t cl; extern entity_t *cl_entities[512]; diff --git a/qw/source/cl_main.c b/qw/source/cl_main.c index c70a137ef..7b4179907 100644 --- a/qw/source/cl_main.c +++ b/qw/source/cl_main.c @@ -216,7 +216,6 @@ jmp_buf host_abort; char *server_version = NULL; // version of server we connected to -extern cvar_t *hud_scoreboard_uid; static netadr_t cl_cmd_packet_address; static void diff --git a/qw/source/cl_parse.c b/qw/source/cl_parse.c index c7478445d..cd97ec003 100644 --- a/qw/source/cl_parse.c +++ b/qw/source/cl_parse.c @@ -172,8 +172,6 @@ int cl_h_playerindex, cl_gib1index, cl_gib2index, cl_gib3index; int packet_latency[NET_TIMINGS]; -extern cvar_t *hud_scoreboard_uid; - int CL_CalcNet (void) {