Adapt balloon colors to UDMF

This commit is contained in:
MascaraSnake 2021-12-28 08:26:04 +01:00
parent 8b69c62111
commit e140bd8252
3 changed files with 10 additions and 2 deletions

View file

@ -4710,6 +4710,10 @@ udmf
sprite = "BLONA0";
width = 32;
height = 64;
stringarg0
{
title = "Color";
}
}
550
{

View file

@ -12750,8 +12750,8 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
}
break;
case MT_BALLOON:
if (mthing->angle > 0)
mobj->color = ((mthing->angle - 1) % (numskincolors - 1)) + 1;
if (mthing->stringargs[0])
mobj->color = get_number(mthing->stringargs[0]);
break;
case MT_FLAME:
if (mthing->args[0])

View file

@ -4994,6 +4994,10 @@ static void P_ConvertBinaryMap(void)
mapthings[i].args[0] = mapthings[i].angle;
mapthings[i].args[1] = !!(mapthings[i].options & MTF_OBJECTSPECIAL);
break;
case 543: //Balloon
if (mapthings[i].angle > 0)
P_WriteConstant(((mapthings[i].angle - 1) % (numskincolors - 1)) + 1, &mapthings[i].stringargs[0]);
break;
case 555: //Diagonal yellow spring
case 556: //Diagonal red spring
case 557: //Diagonal blue spring