Fix Steppy achievement triggering for friendlies.

This commit is contained in:
Mari the Deer 2021-08-28 18:06:48 +02:00
commit e1bf5ad57e
2 changed files with 3 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw1.0.8 \cu(Sat 28 Aug 18:06:11 CEST 2021)\c-";
SWWM_SHORTVER="\cw1.0.8 \cu(2021-08-28 18:06:11)\c-";
SWWM_MODVER="\chSWWM \czGZ\c- \cw1.0.8 r1 \cu(Sat 28 Aug 18:06:48 CEST 2021)\c-";
SWWM_SHORTVER="\cw1.0.8 r1 \cu(2021-08-28 18:06:48)\c-";

View file

@ -1002,7 +1002,7 @@ Class Demolitionist : PlayerPawn
if ( !TestMobjLocation() ) SetOrigin(oldp,true);
}
encroachtics++;
if ( !(encroachtics%GameTicRate) )
if ( !(encroachtics%GameTicRate) && !IsFriend(encroached) )
SWWMUtility.AchievementProgress('swwm_progress_step',encroachtics/GameTicRate,player);
}
else encroachtics = 0;