- 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.
This commit is contained in:
Christoph Oelckers 2016-05-05 20:12:26 +02:00
parent 0b833be06e
commit c193bb7799

View file

@ -2433,12 +2433,6 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SpawnItem)
ACTION_RETURN_BOOL(true); 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()) if (ACTION_CALL_FROM_WEAPON())
{ {
// Used from a weapon, so use some ammo // Used from a weapon, so use some ammo