mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-07 07:21:10 +00:00
- Exhumed: use dynamic arrays for the palette backup in DrawView.
This commit is contained in:
parent
2e3c212444
commit
d70e76e5c6
1 changed files with 4 additions and 3 deletions
|
@ -337,9 +337,10 @@ void DrawView(double smoothRatio, bool sceneonly)
|
||||||
|
|
||||||
if (nFreeze != 3)
|
if (nFreeze != 3)
|
||||||
{
|
{
|
||||||
static uint8_t sectorFloorPal[MAXSECTORS];
|
TArray<uint8_t> paldata(numsectors * 2 + numwalls, true);
|
||||||
static uint8_t sectorCeilingPal[MAXSECTORS];
|
uint8_t* sectorFloorPal = &paldata[0];
|
||||||
static uint8_t wallPal[MAXWALLS];
|
uint8_t* sectorCeilingPal = &paldata[numsectors];
|
||||||
|
uint8_t* wallPal = &paldata[2*numsectors];
|
||||||
int const viewingRange = viewingrange;
|
int const viewingRange = viewingrange;
|
||||||
int const vr = xs_CRoundToInt(65536. * tan(r_fov * (pi::pi() / 360.)));
|
int const vr = xs_CRoundToInt(65536. * tan(r_fov * (pi::pi() / 360.)));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue