Use args for bot hints

This commit is contained in:
Sally Coolatta 2020-09-27 06:32:01 -04:00
parent 586bb71b4b
commit a951521ebb
2 changed files with 8 additions and 4 deletions

View file

@ -11380,9 +11380,9 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
case MT_BOTHINT:
{
// Change size
if (mthing->angle > 0)
if (mthing->args[0] > 0)
{
mobj->radius = mthing->angle * FRACUNIT;
mobj->radius = mthing->args[0] * FRACUNIT;
}
else
{
@ -11400,13 +11400,13 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
}
// Steering amount
if (mthing->extrainfo == 0)
if (mthing->args[1] == 0)
{
mobj->extravalue2 = 2;
}
else
{
mobj->extravalue2 = mthing->extrainfo;
mobj->extravalue2 = mthing->args[1];
}
break;
}

View file

@ -3178,6 +3178,10 @@ static void P_ConvertBinaryMap(void)
}
break;
}
case 2004: // MT_BOTHINT
mapthings[i].args[0] = mapthings[i].angle;
mapthings[i].args[1] = mapthings[i].extrainfo;
break;
case 2333: // MT_BATTLECAPSULE
mapthings[i].args[0] = mapthings[i].extrainfo;
break;