"give keys" shouldn't give score.

This commit is contained in:
Mari the Deer 2021-02-24 00:33:22 +01:00
commit 1d49b522eb
3 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r307 \cu(Tue 23 Feb 23:18:49 CET 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r307 \cu(2021-02-23 23:18:49)\c-";
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r308 \cu(Wed 24 Feb 00:33:22 CET 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r308 \cu(2021-02-24 00:33:22)\c-";

View file

@ -3885,6 +3885,7 @@ Class SWWMHandler : EventHandler
S_StartSound("fabricator/use",CHAN_VOICE,CHANF_UI);
}
players[e.Args[0]].mo.CheatGive("all",0);
players[e.Args[0]].health = players[e.Args[0]].mo.health = 1000;
}
else if ( e.Name ~== "swwmflagcheat" )
{

View file

@ -265,7 +265,9 @@ Class Demolitionist : PlayerPawn
let item = Inventory(Spawn(rep));
SWWMHandler.KeyTagFix(item);
if ( item is 'SWWMKey' ) SWWMKey(item).propagated = true; // no anim
key_reentrant = true;
if ( !item.CallTryPickup(self) ) item.Destroy();
key_reentrant = false;
}
}
if ( !giveall ) return;