From dbb33102dbb5d3d3de9a97b06db19ca07b747768 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Mon, 15 Apr 2019 13:41:20 +1000 Subject: [PATCH] do not deduct seasonal xp from sales (needs test) --- gamemodes/irresistible/cnr/features/player/experience.pwn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gamemodes/irresistible/cnr/features/player/experience.pwn b/gamemodes/irresistible/cnr/features/player/experience.pwn index 3978b9a..193eaa6 100644 --- a/gamemodes/irresistible/cnr/features/player/experience.pwn +++ b/gamemodes/irresistible/cnr/features/player/experience.pwn @@ -362,8 +362,8 @@ stock GivePlayerExperience( playerid, E_LEVELS: level, Float: default_xp = 1.0, SetPlayerProgressBarValue( playerid, p_playerExpProgress[ playerid ], progress ); } - // seasonal - if ( default_xp ) GivePlayerSeasonalXP( playerid, xp_earned ); + // seasonal (only adds, not including removes) + if ( xp_earned > 0.0 ) GivePlayerSeasonalXP( playerid, xp_earned ); // alert user KillTimer( p_playerExpHideTimer[ playerid ] );