From b6b45242959b5c02bd436b288cf102501008152c Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Mon, 17 May 2021 16:06:09 +0200 Subject: [PATCH] Another hotfix for stuff in gzdoom devbuilds. --- zscript/flakcannon.zsc | 2 +- zscript/pulsegun.zsc | 2 +- zscript/warheadlauncher.zsc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zscript/flakcannon.zsc b/zscript/flakcannon.zsc index ce69e3f..6167786 100644 --- a/zscript/flakcannon.zsc +++ b/zscript/flakcannon.zsc @@ -246,7 +246,7 @@ Class FlakChunk : Actor if ( lifetics > 3 ) { lifetics = 0; - if ( frame < 11 ) frame++; + if ( frame < 11 ) frame += 1; } lifetime += lifespeed; if ( (waterlevel <= 0) && (frame < 10) && !(lifetics%2) ) diff --git a/zscript/pulsegun.zsc b/zscript/pulsegun.zsc index 3b82284..18959d1 100644 --- a/zscript/pulsegun.zsc +++ b/zscript/pulsegun.zsc @@ -525,7 +525,7 @@ Class StarterBolt : PulseBolt SetOrigin(origin,true); A_SetAngle(target.angle); A_SetPitch(target.BulletSlope()); - frame++; + frame += 1; if ( frame > 4 ) frame = 0; CheckBeam((cos(angle)*cos(pitch),sin(angle)*cos(pitch),-sin(pitch))); } diff --git a/zscript/warheadlauncher.zsc b/zscript/warheadlauncher.zsc index eeccc6e..b24ed81 100644 --- a/zscript/warheadlauncher.zsc +++ b/zscript/warheadlauncher.zsc @@ -54,7 +54,7 @@ Class ShockWave : Actor if ( !t ) t = ThinkerIterator.Create("Actor"); icount++; if ( icount == 4 ) Spawn("WarheadSubExplosion",pos); - lifespan--; + lifespan -= 1; alpha -= 1./ReactionTime; shocksize = 13*(ReactionTime-lifespan)+3.5/(lifespan/ReactionTime+0.05); A_SetScale(shocksize*0.25);