mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
Merge branch 'master' of https://github.com/rheit/zdoom
This commit is contained in:
commit
cf7f7b0d54
7 changed files with 12 additions and 6 deletions
|
@ -1297,7 +1297,7 @@ void FWeaponSlots::SetFromGameInfo()
|
|||
// Append extra weapons to the slots.
|
||||
for (i = 0; i < NUM_WEAPON_SLOTS; ++i)
|
||||
{
|
||||
for (unsigned j = 0; j < gameinfo.DefaultWeaponSlots[i].Size(); i++)
|
||||
for (unsigned j = 0; j < gameinfo.DefaultWeaponSlots[i].Size(); j++)
|
||||
{
|
||||
PClassWeapon *cls = dyn_cast<PClassWeapon>(PClass::FindClass(gameinfo.DefaultWeaponSlots[i][j]));
|
||||
if (cls == NULL)
|
||||
|
|
|
@ -1119,6 +1119,10 @@ FUNC(LS_ThrustThing)
|
|||
}
|
||||
else if (it)
|
||||
{
|
||||
if (level.flags2 & LEVEL2_HEXENHACK && backSide)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
ThrustThingHelper (it, BYTEANGLE(arg0), arg1, arg2);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -3991,7 +3991,8 @@ struct aim_t
|
|||
if (sv_smartaim < 2)
|
||||
{
|
||||
// friends don't aim at friends (except players), at least not first
|
||||
Printf("Hit friend %s at %f,%f,%f\n", th->GetClass()->TypeName.GetChars(), th->X() / 65536., th->Y() / 65536., th->Z() / 65536.);
|
||||
if (aimdebug)
|
||||
Printf("Hit friend %s at %f,%f,%f\n", th->GetClass()->TypeName.GetChars(), th->X() / 65536., th->Y() / 65536., th->Z() / 65536.);
|
||||
SetResult(thing_friend, in->frac, th, thingpitch);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -265,7 +265,7 @@ void P_LineOpening (FLineOpening &open, AActor *actor, const line_t *linedef,
|
|||
}
|
||||
|
||||
// avoid overflows in the opening.
|
||||
open.range = (fixed_t)MIN<QWORD>((QWORD)open.top - open.bottom, FIXED_MAX);
|
||||
open.range = (fixed_t)MIN<SQWORD>((SQWORD)open.top - open.bottom, FIXED_MAX);
|
||||
}
|
||||
|
||||
|
||||
|
@ -874,7 +874,7 @@ void FMultiBlockLinesIterator::startIteratorForGroup(int group)
|
|||
|
||||
void FMultiBlockLinesIterator::Reset()
|
||||
{
|
||||
continueup = continueup = true;
|
||||
continueup = continuedown = true;
|
||||
index = -1;
|
||||
portalflags = 0;
|
||||
startIteratorForGroup(basegroup);
|
||||
|
|
|
@ -103,7 +103,7 @@ static char HexenSectorSpecialOk[256]={
|
|||
static inline bool P_IsThingSpecial(int specnum)
|
||||
{
|
||||
return (specnum >= Thing_Projectile && specnum <= Thing_SpawnNoFog) ||
|
||||
specnum == Thing_SpawnFacing || Thing_ProjectileIntercept || Thing_ProjectileAimed;
|
||||
specnum == Thing_SpawnFacing || specnum == Thing_ProjectileIntercept || specnum == Thing_ProjectileAimed;
|
||||
}
|
||||
|
||||
enum
|
||||
|
|
|
@ -146,6 +146,7 @@ bool ACustomInventory::CallStateChain (AActor *actor, FState *state)
|
|||
if (proto->ReturnTypes[0] == TypeState)
|
||||
{ // Function returns a state
|
||||
wantret = &ret[0];
|
||||
retval = false; // this is a jump function which never affects the success state.
|
||||
}
|
||||
else if (proto->ReturnTypes[0] == TypeSInt32 || proto->ReturnTypes[0] == TypeBool)
|
||||
{ // Function returns an int or bool
|
||||
|
|
|
@ -3220,7 +3220,7 @@ FxExpression *FxActionSpecialCall::Resolve(FCompileContext& ctx)
|
|||
|
||||
int DecoCallLineSpecial(VMFrameStack *stack, VMValue *param, int numparam, VMReturn *ret, int numret)
|
||||
{
|
||||
assert(numparam > 2 && numparam < 7);
|
||||
assert(numparam > 2 && numparam < 8);
|
||||
assert(numret == 1);
|
||||
assert(param[0].Type == REGT_INT);
|
||||
assert(param[1].Type == REGT_POINTER);
|
||||
|
|
Loading…
Reference in a new issue