Bot Hints use args

This commit is contained in:
Sally Coolatta 2022-10-10 10:50:14 -04:00
parent 0614a8739c
commit 779aade139
2 changed files with 2 additions and 1 deletions

View file

@ -12569,7 +12569,7 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
}
// Steer away instead of towards
if (mthing->options & MTF_AMBUSH)
if (mthing->args[2])
{
mobj->extravalue1 = 0;
}

View file

@ -6549,6 +6549,7 @@ static void P_ConvertBinaryThingTypes(void)
case 2004: // MT_BOTHINT
mapthings[i].args[0] = mapthings[i].angle;
mapthings[i].args[1] = mapthings[i].extrainfo;
mapthings[i].args[2] = !!(mapthings[i].options & MTF_AMBUSH);
break;
case 2010: // MT_ITEMCAPSULE
mapthings[i].args[0] = mapthings[i].angle;