mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 04:51:19 +00:00
Remove halfviewwidth
- Why I thought I needed this variable in addition to centerx has long ago left my memory.
This commit is contained in:
parent
31d842a894
commit
44adff459a
4 changed files with 1 additions and 4 deletions
|
@ -121,7 +121,6 @@ extern int viewwindowx;
|
|||
extern int viewwindowy;
|
||||
extern "C" int viewheight;
|
||||
extern "C" int viewwidth;
|
||||
extern "C" int halfviewwidth; // [RH] Half view width, for plane drawing
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -60,7 +60,6 @@ extern int ST_Y;
|
|||
|
||||
BYTE* viewimage;
|
||||
extern "C" {
|
||||
int halfviewwidth;
|
||||
int ylookup[MAXHEIGHT];
|
||||
BYTE *dc_destorg;
|
||||
}
|
||||
|
|
|
@ -351,7 +351,6 @@ void R_SWRSetWindow(int windowSize, int fullWidth, int fullHeight, int stHeight,
|
|||
}
|
||||
|
||||
fuzzviewheight = viewheight - 2; // Maximum row the fuzzer can draw to
|
||||
halfviewwidth = (viewwidth >> 1) - 1;
|
||||
|
||||
lastcenteryfrac = 1<<30;
|
||||
CenterX = centerx;
|
||||
|
|
|
@ -1525,7 +1525,7 @@ void R_DrawNormalPlane (visplane_t *pl, double _xscale, double _yscale, fixed_t
|
|||
ystepscale = (DWORD)(-(SDWORD)ystepscale);
|
||||
}
|
||||
|
||||
int x = pl->right - halfviewwidth - 1;
|
||||
int x = pl->right - centerx;
|
||||
planeang += 90;
|
||||
basexfrac = xs_RoundToInt(xscale * planeang.Cos()) + x*xstepscale;
|
||||
baseyfrac = xs_RoundToInt(yscale * -planeang.Sin()) + x*ystepscale;
|
||||
|
|
Loading…
Reference in a new issue