mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-31 05:00:41 +00:00
You'll Cowards Don't Even Indent
git-svn-id: https://svn.eduke32.com/eduke32@5712 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
73459ede47
commit
b40f9b5b80
2 changed files with 139 additions and 132 deletions
|
@ -162,7 +162,14 @@ enum {
|
|||
DAMETH_ONEBITALPHA = 131072,
|
||||
DAMETH_ARTIMMUNITY = 262144,
|
||||
|
||||
DAMETH_UPLOADTEXTURE_MASK = DAMETH_HI|DAMETH_NODOWNSIZE|DAMETH_NOFIX|DAMETH_NOTEXCOMPRESS|DAMETH_HASALPHA|DAMETH_ONEBITALPHA|DAMETH_ARTIMMUNITY,
|
||||
DAMETH_UPLOADTEXTURE_MASK =
|
||||
DAMETH_HI |
|
||||
DAMETH_NODOWNSIZE |
|
||||
DAMETH_NOFIX |
|
||||
DAMETH_NOTEXCOMPRESS |
|
||||
DAMETH_HASALPHA |
|
||||
DAMETH_ONEBITALPHA |
|
||||
DAMETH_ARTIMMUNITY,
|
||||
};
|
||||
|
||||
#define DAMETH_NARROW_MASKPROPS(dameth) (((dameth)&(~DAMETH_TRANS1))|(((dameth)&DAMETH_TRANS1)>>1))
|
||||
|
|
|
@ -1030,9 +1030,11 @@ static void polymost_setuptexture(const int32_t dameth, int filter)
|
|||
void gloadtile_art(int32_t dapic, int32_t dapal, int32_t tintpalnum, int32_t dashade, int32_t dameth, pthtyp *pth, int32_t doalloc)
|
||||
{
|
||||
static int32_t fullbrightloadingpass = 0;
|
||||
vec2_t siz = { 0, 0 }, tsiz = tilesiz[dapic];
|
||||
char hasalpha = 0, hasfullbright = 0;
|
||||
int32_t npoty = 0;
|
||||
|
||||
vec2_t siz, tsiz = tilesiz[dapic];
|
||||
|
||||
{
|
||||
if (!glinfo.texnpot)
|
||||
{
|
||||
for (siz.x = 1; siz.x < tsiz.x; siz.x += siz.x) { }
|
||||
|
@ -1047,7 +1049,6 @@ void gloadtile_art(int32_t dapic, int32_t dapal, int32_t tintpalnum, int32_t das
|
|||
}
|
||||
|
||||
coltype *pic = (coltype *)Xmalloc(siz.x*siz.y*sizeof(coltype));
|
||||
char hasalpha = 0, hasfullbright = 0;
|
||||
|
||||
if (!waloff[dapic])
|
||||
{
|
||||
|
@ -1165,8 +1166,6 @@ void gloadtile_art(int32_t dapic, int32_t dapal, int32_t tintpalnum, int32_t das
|
|||
|
||||
fixtransparency(pic,tsiz,siz,dameth);
|
||||
|
||||
int32_t npoty = 0;
|
||||
|
||||
if (polymost_want_npotytex(dameth, siz.y) && tsiz.x == siz.x && tsiz.y == siz.y) // XXX
|
||||
{
|
||||
const int32_t nextpoty = 1 << ((picsiz[dapic] >> 4) + 1);
|
||||
|
@ -1190,6 +1189,7 @@ void gloadtile_art(int32_t dapic, int32_t dapal, int32_t tintpalnum, int32_t das
|
|||
(hasalpha ? (DAMETH_HASALPHA|DAMETH_ONEBITALPHA) : 0));
|
||||
|
||||
Bfree(pic);
|
||||
}
|
||||
|
||||
polymost_setuptexture(dameth, -1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue