Use args[1] for Battle capsules speed

This commit is contained in:
Sally Coolatta 2020-09-27 06:36:40 -04:00
parent a951521ebb
commit dc4acfca93
3 changed files with 4 additions and 3 deletions

View file

@ -474,8 +474,8 @@ void K_RunBattleOvertime(void)
void K_SetupMovingCapsule(mapthing_t *mt, mobj_t *mobj)
{
UINT8 sequence = mt->args[0]-1;
fixed_t speed = (FRACUNIT >> 3) * mt->angle;
UINT8 sequence = mt->args[0] - 1;
fixed_t speed = (FRACUNIT >> 3) * mt->args[1];
boolean backandforth = (mt->options & MTF_AMBUSH);
boolean reverse = (mt->options & MTF_OBJECTSPECIAL);
mobj_t *mo2;

View file

@ -11507,7 +11507,7 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
}
// Moving capsules!
if (mthing->args[0] && mthing->angle)
if (mthing->args[0] && mthing->args[1])
{
K_SetupMovingCapsule(mthing, mobj);
}

View file

@ -3184,6 +3184,7 @@ static void P_ConvertBinaryMap(void)
break;
case 2333: // MT_BATTLECAPSULE
mapthings[i].args[0] = mapthings[i].extrainfo;
mapthings[i].args[1] = mapthings[i].angle;
break;
default:
break;