- fixed: the ambient sound things need both the args from the DoomEdNum mapping and the actual map.

This commit is contained in:
Christoph Oelckers 2016-01-04 11:52:07 +01:00
commit bd95c5eadf
4 changed files with 77 additions and 70 deletions

View file

@ -4674,10 +4674,10 @@ AActor *P_SpawnMapThing (FMapThing *mthing, int position)
}
// copy args to mapthing so that we have them in one place for the rest of this function
if (mentry->ArgsDefined)
if (mentry->ArgsDefined > 0)
{
if (mentry->Type!= NULL) mthing->special = mentry->Special;
memcpy(mthing->args, mentry->Args, sizeof(mthing->args));
memcpy(mthing->args, mentry->Args, sizeof(mthing->args[0]) * mentry->ArgsDefined);
}
int pnum = -1;