Fix balloon coloring
This commit is contained in:
parent
124bc25cee
commit
0d7e9fc691
2 changed files with 6 additions and 3 deletions
|
|
@ -12037,8 +12037,11 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
|
|||
mobj->health = FixedMul(mobj->subsector->sector->ceilingheight - mobj->subsector->sector->floorheight, 3*(FRACUNIT/4)) >> FRACBITS;
|
||||
break;
|
||||
case MT_BALLOON:
|
||||
if (mthing->stringargs[0])
|
||||
if (mthing->args[1])
|
||||
mobj->color = mthing->args[1];
|
||||
else if (mthing->stringargs[0])
|
||||
mobj->color = get_number(mthing->stringargs[0]);
|
||||
|
||||
if (mthing->args[0])
|
||||
mobj->flags2 |= MF2_AMBUSH;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -6621,11 +6621,11 @@ static void P_ConvertBinaryThingTypes(void)
|
|||
mapthings[i].args[2] = !(mapthings[i].options & (MTF_AMBUSH|MTF_OBJECTSPECIAL));
|
||||
break;
|
||||
case 462: //Balloon
|
||||
mapthings[i].args[0] = !!(mapthings[i].options & MTF_AMBUSH);
|
||||
if (mapthings[i].angle > 0)
|
||||
{
|
||||
P_WriteSkincolor(((mapthings[i].angle - 1) % (numskincolors - 1)) + 1, &mapthings[i].stringargs[0]);
|
||||
mapthings[i].args[1] = (1 + (mapthings[i].angle % (numskincolors-1)));
|
||||
}
|
||||
mapthings[i].args[0] = !!(mapthings[i].options & MTF_AMBUSH);
|
||||
break;
|
||||
case 500: //Air bubble patch
|
||||
mapthings[i].args[0] = !!(mapthings[i].options & MTF_AMBUSH);
|
||||
|
|
|
|||
Loading…
Reference in a new issue