mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-27 09:20:51 +00:00
Remove a couple of nested externs and #include some headers directly
... instead of relying on indirect inclusion via duke3d.h. git-svn-id: https://svn.eduke32.com/eduke32@2290 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
95e5d1e29d
commit
48ec616480
5 changed files with 8 additions and 16 deletions
|
@ -30,6 +30,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
#include "baselayer.h"
|
||||
#include "duke3d.h"
|
||||
#include "game.h"
|
||||
#include "scriplib.h"
|
||||
#include "osd.h"
|
||||
#include "osdcmds.h"
|
||||
|
@ -611,7 +612,6 @@ int32_t CONFIG_ReadSetup(void)
|
|||
{
|
||||
int32_t dummy, i = 0;
|
||||
char commmacro[] = "CommbatMacro# ";
|
||||
extern int32_t g_forceWeaponChoice;
|
||||
char tempbuf[1024];
|
||||
|
||||
CONTROL_ClearAssignments();
|
||||
|
@ -681,11 +681,8 @@ int32_t CONFIG_ReadSetup(void)
|
|||
}
|
||||
// #endif
|
||||
|
||||
{
|
||||
extern char defaultduke3dgrp[BMAX_PATH];
|
||||
if (!Bstrcmp(defaultduke3dgrp,"duke3d.grp"))
|
||||
SCRIPT_GetString(ud.config.scripthandle, "Setup","SelectedGRP",&g_grpNamePtr[0]);
|
||||
}
|
||||
if (!Bstrcmp(defaultduke3dgrp,"duke3d.grp"))
|
||||
SCRIPT_GetString(ud.config.scripthandle, "Setup","SelectedGRP",&g_grpNamePtr[0]);
|
||||
|
||||
if (!NAM)
|
||||
{
|
||||
|
|
|
@ -9326,7 +9326,6 @@ static void G_DisplayLogo(void)
|
|||
static void G_Cleanup(void)
|
||||
{
|
||||
int32_t i;
|
||||
extern char *bitptr;
|
||||
|
||||
for (i=(MAXLEVELS*(MAXVOLUMES+1))-1; i>=0; i--) // +1 volume for "intro", "briefing" music
|
||||
{
|
||||
|
@ -9733,7 +9732,6 @@ static int32_t G_EndOfLevel(void)
|
|||
ud.eog = 0;
|
||||
if ((!g_netServer && ud.multimode < 2))
|
||||
{
|
||||
extern int32_t probey;
|
||||
if (!VOLUMEALL)
|
||||
G_DoOrderScreen();
|
||||
g_player[myconnectindex].ps->gm = MODE_MENU;
|
||||
|
|
|
@ -21,6 +21,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
//-------------------------------------------------------------------------
|
||||
|
||||
#include "duke3d.h"
|
||||
#include "net.h"
|
||||
#include "player.h"
|
||||
#include "mouse.h"
|
||||
#include "osd.h"
|
||||
#include "osdcmds.h"
|
||||
|
@ -579,7 +581,6 @@ static void Menus_LoadSave_DisplayCommon1(void)
|
|||
|
||||
void M_DisplayMenus(void)
|
||||
{
|
||||
extern int32_t g_netSync;
|
||||
CACHE1D_FIND_REC *dir;
|
||||
int32_t c,x,i;
|
||||
int32_t l,m;
|
||||
|
@ -4246,7 +4247,6 @@ cheat_for_port_credits:
|
|||
ud.config.JoystickAnalogueAxes[thispage*2+(x==7)] = l;
|
||||
CONTROL_MapAnalogAxis(thispage*2+(x==7),l,controldevice_joystick);
|
||||
{
|
||||
extern int32_t mouseyaxismode; // player.c
|
||||
mouseyaxismode = -1;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -24,6 +24,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include "osdcmds.h"
|
||||
#include "baselayer.h"
|
||||
#include "duke3d.h"
|
||||
#include "game.h"
|
||||
#include "net.h"
|
||||
#include "premap.h"
|
||||
#include "menus.h"
|
||||
#include "osd.h"
|
||||
|
@ -699,7 +701,6 @@ static int32_t osdcmd_give(const osdfuncparm_t *parm)
|
|||
void onvideomodechange(int32_t newmode)
|
||||
{
|
||||
uint8_t palid;
|
||||
extern int32_t g_crosshairSum;
|
||||
|
||||
if (newmode)
|
||||
{
|
||||
|
@ -1132,7 +1133,6 @@ static int32_t osdcmd_inittimer(const osdfuncparm_t *parm)
|
|||
|
||||
static int32_t osdcmd_disconnect(const osdfuncparm_t *parm)
|
||||
{
|
||||
extern int32_t g_netDisconnect;
|
||||
UNREFERENCED_PARAMETER(parm);
|
||||
g_netDisconnect = 1;
|
||||
return OSDCMD_OK;
|
||||
|
@ -1150,8 +1150,6 @@ static int32_t osdcmd_connect(const osdfuncparm_t *parm)
|
|||
|
||||
static int32_t osdcmd_password(const osdfuncparm_t *parm)
|
||||
{
|
||||
extern char g_netPassword[32];
|
||||
|
||||
if (parm->numparms < 1)
|
||||
{
|
||||
Bmemset(g_netPassword, 0, sizeof(g_netPassword));
|
||||
|
|
|
@ -21,6 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
//-------------------------------------------------------------------------
|
||||
|
||||
#include "duke3d.h"
|
||||
#include "game.h"
|
||||
#include "osd.h"
|
||||
#include "gamedef.h"
|
||||
#include "premap.h"
|
||||
|
@ -1104,7 +1105,6 @@ static inline void prelevel(char g)
|
|||
{
|
||||
int32_t i, nexti, j, startwall, endwall;
|
||||
int32_t switchpicnum;
|
||||
extern char ror_protectedsectors[MAXSECTORS];
|
||||
|
||||
uint8_t tagbitmap[65536>>3];
|
||||
Bmemset(tagbitmap, 0, sizeof(tagbitmap));
|
||||
|
@ -2149,4 +2149,3 @@ void G_FreeMapState(int32_t mapnum)
|
|||
Bfree(MapInfo[mapnum].savedstate);
|
||||
MapInfo[mapnum].savedstate = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue