Merge branch 'master' of https://github.com/coelckers/gzdoom
# Conflicts: # src/posix/cocoa/i_video.mm # src/win32/hardware.cpp # wadsrc/static/menudef.txt
This commit is contained in:
commit
dede94b7e2
731 changed files with 94186 additions and 113 deletions
|
|
@ -240,9 +240,9 @@ void FInterpolator::RemoveInterpolation(DInterpolation *interp)
|
|||
if (interp->Prev != NULL) interp->Prev->Next = interp->Next;
|
||||
if (interp->Next != NULL) interp->Next->Prev = interp->Prev;
|
||||
}
|
||||
interp->Next = NULL;
|
||||
interp->Prev = NULL;
|
||||
count--;
|
||||
interp->Next = NULL;
|
||||
interp->Prev = NULL;
|
||||
count--;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
@ -461,12 +461,12 @@ void DSectorPlaneInterpolation::Restore()
|
|||
if (!ceiling)
|
||||
{
|
||||
sector->floorplane.setD(bakheight);
|
||||
sector->SetPlaneTexZ(sector_t::floor, baktexz);
|
||||
sector->SetPlaneTexZ(sector_t::floor, baktexz, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
sector->ceilingplane.setD(bakheight);
|
||||
sector->SetPlaneTexZ(sector_t::ceiling, baktexz);
|
||||
sector->SetPlaneTexZ(sector_t::ceiling, baktexz, true);
|
||||
}
|
||||
P_RecalculateAttached3DFloors(sector);
|
||||
sector->CheckPortalPlane(ceiling? sector_t::ceiling : sector_t::floor);
|
||||
|
|
@ -504,8 +504,8 @@ void DSectorPlaneInterpolation::Interpolate(double smoothratio)
|
|||
else
|
||||
{
|
||||
pplane->setD(oldheight + (bakheight - oldheight) * smoothratio);
|
||||
sector->SetPlaneTexZ(pos, oldtexz + (baktexz - oldtexz) * smoothratio);
|
||||
P_RecalculateAttached3DFloors(sector);
|
||||
sector->SetPlaneTexZ(pos, oldtexz + (baktexz - oldtexz) * smoothratio, true);
|
||||
P_RecalculateAttached3DFloors(sector);
|
||||
sector->CheckPortalPlane(pos);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -824,6 +824,15 @@ void R_InitTranslationTables ()
|
|||
remap->Remap[i] = IcePaletteRemap[v];
|
||||
remap->Palette[i] = PalEntry(255, IcePalette[v][0], IcePalette[v][1], IcePalette[v][2]);
|
||||
}
|
||||
|
||||
// The alphatexture translation. Since alphatextures use the red channel this is just a standard grayscale mapping.
|
||||
PushIdentityTable(TRANSLATION_Standard);
|
||||
remap = translationtables[TRANSLATION_Standard][8];
|
||||
for (i = 0; i < 256; i++)
|
||||
{
|
||||
remap->Remap[i] = i;
|
||||
remap->Palette[i] = PalEntry(255, i, i, i);
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@
|
|||
#include "r_data/voxels.h"
|
||||
#include "textures/textures.h"
|
||||
|
||||
void gl_InitModels();
|
||||
|
||||
// variables used to look up
|
||||
// and range check thing_t sprites patches
|
||||
TArray<spritedef_t> sprites;
|
||||
|
|
@ -985,6 +987,8 @@ void R_InitSprites ()
|
|||
|
||||
// [RH] Sort the skins, but leave base as skin 0
|
||||
//qsort (&skins[PlayerClasses.Size ()], numskins-PlayerClasses.Size (), sizeof(FPlayerSkin), skinsorter);
|
||||
|
||||
gl_InitModels();
|
||||
}
|
||||
|
||||
void R_DeinitSpriteData()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue