p_mobj.c
/*
================
=
= P_CheckMissileSpawn
=
= Moves the missile forward a bit and possibly explodes it right there
=
================
*/
P_CheckMissileSpawn
Moves the missile forward a bit and possibly explodes it right there
P_CheckMissileSpawn Moves the missile forward a bit and possibly explodes it right there
void P_CheckMissileSpawn (mobj_t *th)
{
	th->x += (th->momx>>1);
	th->y += (th->momy>>1);	
	th->z += (th->momz>>1);
	if (!P_TryMove (th, th->x, th->y))
		P_ExplodeMissile (th);
}
void P_CheckMissileSpawn ( mobj_t * th ) { th -> x += ( th -> momx >> 1 ) ; th -> y += ( th -> momy >> 1 ) ; th -> z += ( th -> momz >> 1 ) ; if ( ! P_TryMove ( th , th -> x , th -> y ) ) P_ExplodeMissile ( th ) ; }
P_CheckMissileSpawn
Moves the missile forward a bit and possibly explodes it right there
P_CheckMissileSpawn Moves the missile forward a bit and possibly explodes it right there
/* move a little forward so an angle can */ /* be computed if it immediately explodes */