mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +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)
|
||||
{
|
||||
static uint8_t sectorFloorPal[MAXSECTORS];
|
||||
static uint8_t sectorCeilingPal[MAXSECTORS];
|
||||
static uint8_t wallPal[MAXWALLS];
|
||||
TArray<uint8_t> paldata(numsectors * 2 + numwalls, true);
|
||||
uint8_t* sectorFloorPal = &paldata[0];
|
||||
uint8_t* sectorCeilingPal = &paldata[numsectors];
|
||||
uint8_t* wallPal = &paldata[2*numsectors];
|
||||
int const viewingRange = viewingrange;
|
||||
int const vr = xs_CRoundToInt(65536. * tan(r_fov * (pi::pi() / 360.)));
|
||||
|
||||
|
|
Loading…
Reference in a new issue