From 05260d8e8a8cdcf0dfadbc642462172bcae07824 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 16 Apr 2022 22:19:07 +0200 Subject: [PATCH] - don't let "give weapons" hand out abstract weapons. --- wadsrc/static/zscript/actors/player/player_cheat.zs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/actors/player/player_cheat.zs b/wadsrc/static/zscript/actors/player/player_cheat.zs index 3932ae1c0..efb1cc948 100644 --- a/wadsrc/static/zscript/actors/player/player_cheat.zs +++ b/wadsrc/static/zscript/actors/player/player_cheat.zs @@ -175,7 +175,7 @@ extend class PlayerPawn for (i = 0; i < AllActorClasses.Size(); ++i) { let type = (class)(AllActorClasses[i]); - if (type != null && type != "Weapon") + if (type != null && type != "Weapon" && !type.isAbstract()) { // Don't give replaced weapons unless the replacement was done by Dehacked. let rep = GetReplacement(type);