mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 23:32:02 +00:00
Merge branch 'master' of https://github.com/rheit/zdoom
This commit is contained in:
commit
a0d4bc0a89
3 changed files with 8 additions and 4 deletions
|
@ -3546,6 +3546,8 @@ static const int LegacyRenderStyleIndices[] =
|
||||||
65, // STYLE_Add,
|
65, // STYLE_Add,
|
||||||
66, // STYLE_Shaded,
|
66, // STYLE_Shaded,
|
||||||
67, // STYLE_TranslucentStencil,
|
67, // STYLE_TranslucentStencil,
|
||||||
|
68, // STYLE_Shadow,
|
||||||
|
69, // STYLE_Subtract,
|
||||||
-1
|
-1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1826,6 +1826,8 @@ void P_LoadThings2 (MapData * map)
|
||||||
|
|
||||||
for(int i = 0; i< numthings; i++)
|
for(int i = 0; i< numthings; i++)
|
||||||
{
|
{
|
||||||
|
memset (&mti[i], 0, sizeof(mti[i]));
|
||||||
|
|
||||||
mti[i].thingid = LittleShort(mth[i].thingid);
|
mti[i].thingid = LittleShort(mth[i].thingid);
|
||||||
mti[i].x = LittleShort(mth[i].x)<<FRACBITS;
|
mti[i].x = LittleShort(mth[i].x)<<FRACBITS;
|
||||||
mti[i].y = LittleShort(mth[i].y)<<FRACBITS;
|
mti[i].y = LittleShort(mth[i].y)<<FRACBITS;
|
||||||
|
@ -1838,12 +1840,10 @@ void P_LoadThings2 (MapData * map)
|
||||||
mti[i].SkillFilter = MakeSkill(mti[i].flags);
|
mti[i].SkillFilter = MakeSkill(mti[i].flags);
|
||||||
mti[i].ClassFilter = (mti[i].flags & MTF_CLASS_MASK) >> MTF_CLASS_SHIFT;
|
mti[i].ClassFilter = (mti[i].flags & MTF_CLASS_MASK) >> MTF_CLASS_SHIFT;
|
||||||
mti[i].flags &= ~(MTF_SKILLMASK|MTF_CLASS_MASK);
|
mti[i].flags &= ~(MTF_SKILLMASK|MTF_CLASS_MASK);
|
||||||
mti[i].Conversation = 0;
|
|
||||||
mti[i].gravity = FRACUNIT;
|
mti[i].gravity = FRACUNIT;
|
||||||
mti[i].RenderStyle = STYLE_Count;
|
mti[i].RenderStyle = STYLE_Count;
|
||||||
mti[i].alpha = -1;
|
mti[i].alpha = -1;
|
||||||
mti[i].health = 1;
|
mti[i].health = 1;
|
||||||
mti[i].fillcolor = mti[i].scaleX = mti[i].scaleY = mti[i].score = 0;
|
|
||||||
}
|
}
|
||||||
delete[] mtp;
|
delete[] mtp;
|
||||||
}
|
}
|
||||||
|
|
|
@ -796,11 +796,13 @@ DEFINE_PROPERTY(renderstyle, S, Actor)
|
||||||
{
|
{
|
||||||
PROP_STRING_PARM(str, 0);
|
PROP_STRING_PARM(str, 0);
|
||||||
static const char * renderstyles[]={
|
static const char * renderstyles[]={
|
||||||
"NONE", "NORMAL", "FUZZY", "SOULTRANS", "OPTFUZZY", "STENCIL", "TRANSLUCENT", "ADD", "SHADED", "SUBTRACT", NULL };
|
"NONE", "NORMAL", "FUZZY", "SOULTRANS", "OPTFUZZY", "STENCIL",
|
||||||
|
"TRANSLUCENT", "ADD", "SHADED", "SHADOW", "SUBTRACT", NULL };
|
||||||
|
|
||||||
static const int renderstyle_values[]={
|
static const int renderstyle_values[]={
|
||||||
STYLE_None, STYLE_Normal, STYLE_Fuzzy, STYLE_SoulTrans, STYLE_OptFuzzy,
|
STYLE_None, STYLE_Normal, STYLE_Fuzzy, STYLE_SoulTrans, STYLE_OptFuzzy,
|
||||||
STYLE_TranslucentStencil, STYLE_Translucent, STYLE_Add, STYLE_Shaded, STYLE_Subtract};
|
STYLE_TranslucentStencil, STYLE_Translucent, STYLE_Add, STYLE_Shaded,
|
||||||
|
STYLE_Shadow, STYLE_Subtract};
|
||||||
|
|
||||||
// make this work for old style decorations, too.
|
// make this work for old style decorations, too.
|
||||||
if (!strnicmp(str, "style_", 6)) str+=6;
|
if (!strnicmp(str, "style_", 6)) str+=6;
|
||||||
|
|
Loading…
Reference in a new issue