Moving away more portal-related global vars to r_portal.

This commit is contained in:
Nev3r 2019-06-03 13:33:12 +02:00
parent 942c34a6af
commit 2aabf6ffd5
4 changed files with 6 additions and 4 deletions

View File

@ -41,6 +41,10 @@ extern portal_t* portal_base;
extern portal_t* portal_cap;
extern UINT8 portalrender;
extern sector_t *portalcullsector;
extern line_t *portalclipline;
extern INT32 portalclipstart, portalclipend;
void Portal_InitList (void);
void Portal_Remove (portal_t* portal);
void Portal_Add2Lines (const INT32 line1, const INT32 line2, const INT32 x1, const INT32 x2);

View File

@ -15,6 +15,7 @@
#include "r_local.h"
#include "r_sky.h"
#include "r_portal.h"
#include "r_splats.h"
#include "w_wad.h"

View File

@ -82,10 +82,6 @@ extern fixed_t viewx, viewy, viewz;
extern angle_t viewangle, aimingangle;
extern sector_t *viewsector;
extern player_t *viewplayer;
extern UINT8 portalrender;
extern sector_t *portalcullsector;
extern line_t *portalclipline;
extern INT32 portalclipstart, portalclipend;
extern consvar_t cv_allowmlook;
extern consvar_t cv_maxportals;

View File

@ -24,6 +24,7 @@
#include "i_video.h" // rendermode
#include "r_things.h"
#include "r_plane.h"
#include "r_portal.h"
#include "p_tick.h"
#include "p_local.h"
#include "p_slopes.h"