From c193bb77994b4b80f851a5c71915f8b5e1a0d5ac Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 5 May 2016 20:12:26 +0200 Subject: [PATCH] - removed the special case 0 in A_SpawnItem, meaning 'in front of the player'. As it turned out this has been broken for many, many years, so one can assume that most content using this function depends on this special case not working. I could track it down to at least 2008. --- src/thingdef/thingdef_codeptr.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index 34a9cf02cc..e5d0800954 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -2433,12 +2433,6 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SpawnItem) ACTION_RETURN_BOOL(true); } - if (distance == 0) - { - // use the minimum distance that does not result in an overlap - distance = (self->radius + GetDefaultByType(missile)->radius); - } - if (ACTION_CALL_FROM_WEAPON()) { // Used from a weapon, so use some ammo