Skip to content

Commit

Permalink
libcommon: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Mar 4, 2015
1 parent e9eb9f5 commit e3277ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doomsday/plugins/common/include/p_map.h
Expand Up @@ -56,7 +56,7 @@ extern "C" {
dd_bool P_CheckSight(mobj_t const *beholder, mobj_t const *target);

/**
* Determines the world space angle between @em this mobj and the given @a point.
* Determines the world space angle between the points @a from and @a to.
*
* @param from World space vanatage point to look from.
* @param to World space point to look to.
Expand Down
11 changes: 6 additions & 5 deletions doomsday/plugins/common/src/mobj.cpp
Expand Up @@ -957,6 +957,12 @@ mobj_t *P_LaunchMissile(mobj_t *missile, angle_t angle, coord_t const targetPos[
DENG_ASSERT(targetPos);
if(missile)
{
// Play the launch sound.
if(missile->info->seeSound)
{
S_StartSound(missile->info->seeSound, missile);
}

// Determine speed.
/// @todo Should optionally calculate this in true 3D.
coord_t dist;
Expand All @@ -982,11 +988,6 @@ mobj_t *Mobj_LaunchMissileAtAngle2(mobj_t *mob, mobj_t *missile, angle_t angle,
{
// Remember the source (i.e., us) for tracking kills, etc...
missile->target = mob;

if(missile->info->seeSound)
{
S_StartSound(missile->info->seeSound, missile);
}
}

return P_LaunchMissile(missile, angle, targetPos, extraMomZ);
Expand Down

0 comments on commit e3277ed

Please sign in to comment.