mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-26 06:01:14 +00:00
Merge branch 'master' of https://github.com/rheit/zdoom
This commit is contained in:
commit
77a79048f8
2 changed files with 4 additions and 3 deletions
|
@ -552,7 +552,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_MaulerTorpedoWave)
|
|||
|
||||
// If the torpedo hit the ceiling, it should still spawn the wave
|
||||
savedz = self->Z();
|
||||
if (wavedef && self->ceilingz < wavedef->Top())
|
||||
if (wavedef && self->ceilingz < self->Z() + wavedef->height)
|
||||
{
|
||||
self->SetZ(self->ceilingz - wavedef->Height);
|
||||
}
|
||||
|
|
|
@ -309,7 +309,8 @@ static FxExpression *ParseExpressionC (FScanner &sc, PClassActor *cls)
|
|||
static FxExpression *ParseExpressionB (FScanner &sc, PClassActor *cls)
|
||||
{
|
||||
sc.GetToken();
|
||||
switch(sc.TokenType)
|
||||
int token = sc.TokenType;
|
||||
switch(token)
|
||||
{
|
||||
case '~':
|
||||
return new FxUnaryNotBitwise(ParseExpressionA (sc, cls));
|
||||
|
@ -325,7 +326,7 @@ static FxExpression *ParseExpressionB (FScanner &sc, PClassActor *cls)
|
|||
|
||||
case TK_Incr:
|
||||
case TK_Decr:
|
||||
return new FxPreIncrDecr(ParseExpressionA(sc, cls), sc.TokenType);
|
||||
return new FxPreIncrDecr(ParseExpressionA(sc, cls), token);
|
||||
|
||||
default:
|
||||
sc.UnGet();
|
||||
|
|
Loading…
Reference in a new issue