mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 16:07:40 +00:00
Merge branch 'master' of https://github.com/rheit/zdoom
This commit is contained in:
commit
ad88cfc5e2
5 changed files with 24 additions and 4 deletions
|
@ -294,8 +294,9 @@ static int P_Set3DFloor(line_t * line, int param, int param2, int alpha)
|
||||||
FTextureID tex = line->sidedef[0]->GetTexture(side_t::top);
|
FTextureID tex = line->sidedef[0]->GetTexture(side_t::top);
|
||||||
if (!tex.Exists() && alpha<255)
|
if (!tex.Exists() && alpha<255)
|
||||||
{
|
{
|
||||||
alpha=clamp(-tex.GetIndex(), 0, 255);
|
alpha = -tex.GetIndex();
|
||||||
}
|
}
|
||||||
|
alpha = clamp(alpha, 0, 255);
|
||||||
if (alpha==0) flags&=~(FF_RENDERALL|FF_BOTHPLANES|FF_ALLSIDES);
|
if (alpha==0) flags&=~(FF_RENDERALL|FF_BOTHPLANES|FF_ALLSIDES);
|
||||||
else if (alpha!=255) flags|=FF_TRANSLUCENT;
|
else if (alpha!=255) flags|=FF_TRANSLUCENT;
|
||||||
|
|
||||||
|
|
|
@ -6807,7 +6807,18 @@ scriptwait:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PCD_PRINTBINARY:
|
case PCD_PRINTBINARY:
|
||||||
|
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 6)))
|
||||||
|
#define HAS_DIAGNOSTIC_PRAGMA
|
||||||
|
#endif
|
||||||
|
#ifdef HAS_DIAGNOSTIC_PRAGMA
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wformat="
|
||||||
|
#pragma GCC diagnostic ignored "-Wformat-extra-args"
|
||||||
|
#endif
|
||||||
work.AppendFormat ("%B", STACK(1));
|
work.AppendFormat ("%B", STACK(1));
|
||||||
|
#ifdef HAS_DIAGNOSTIC_PRAGMA
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
--sp;
|
--sp;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -3754,7 +3754,9 @@ void P_SetupLevel (char *lumpname, int position)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
times[0].Clock();
|
||||||
P_ParseTextMap(map, missingtex);
|
P_ParseTextMap(map, missingtex);
|
||||||
|
times[0].Unclock();
|
||||||
}
|
}
|
||||||
|
|
||||||
times[6].Clock();
|
times[6].Clock();
|
||||||
|
|
|
@ -2473,9 +2473,10 @@ void P_PlayerThink (player_t *player)
|
||||||
if ( player->cheats & CF_HIGHJUMP ) jumpvelz *= 2;
|
if ( player->cheats & CF_HIGHJUMP ) jumpvelz *= 2;
|
||||||
|
|
||||||
player->mo->velz += jumpvelz;
|
player->mo->velz += jumpvelz;
|
||||||
S_Sound (player->mo, CHAN_BODY, "*jump", 1, ATTN_NORM);
|
|
||||||
player->mo->flags2 &= ~MF2_ONMOBJ;
|
player->mo->flags2 &= ~MF2_ONMOBJ;
|
||||||
player->jumpTics = -1;
|
player->jumpTics = -1;
|
||||||
|
if (!(player->cheats & CF_PREDICTING))
|
||||||
|
S_Sound(player->mo, CHAN_BODY, "*jump", 1, ATTN_NORM);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2502,7 +2503,7 @@ void P_PlayerThink (player_t *player)
|
||||||
{
|
{
|
||||||
player->mo->flags2 |= MF2_FLY;
|
player->mo->flags2 |= MF2_FLY;
|
||||||
player->mo->flags |= MF_NOGRAVITY;
|
player->mo->flags |= MF_NOGRAVITY;
|
||||||
if (player->mo->velz <= -39*FRACUNIT)
|
if ((player->mo->velz <= -39 * FRACUNIT) && !(player->cheats & CF_PREDICTING))
|
||||||
{ // Stop falling scream
|
{ // Stop falling scream
|
||||||
S_StopSound (player->mo, CHAN_VOICE);
|
S_StopSound (player->mo, CHAN_VOICE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -257,7 +257,12 @@ int main (int argc, char **argv)
|
||||||
#if defined(__MACH__) && !defined(NOASM)
|
#if defined(__MACH__) && !defined(NOASM)
|
||||||
unprotect_rtext();
|
unprotect_rtext();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Set LC_NUMERIC environment variable in case some library decides to
|
||||||
|
// clear the setlocale call at least this will be correct.
|
||||||
|
// Note that the LANG environment variable is overridden by LC_*
|
||||||
|
setenv ("LC_NUMERIC", "C", 1);
|
||||||
|
|
||||||
#ifndef NO_GTK
|
#ifndef NO_GTK
|
||||||
GtkAvailable = gtk_init_check (&argc, &argv);
|
GtkAvailable = gtk_init_check (&argc, &argv);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue