summaryrefslogtreecommitdiff
path: root/src/strife/p_mobj.c
diff options
context:
space:
mode:
authorSamuel Villareal2010-09-04 06:34:42 +0000
committerSamuel Villareal2010-09-04 06:34:42 +0000
commitded5e702b8f28f9eb2d5322d47f0cd08e93cb74b (patch)
tree917d2535c0133c38358cf2e395250b4e4814c1f3 /src/strife/p_mobj.c
parent583406a2ba2a10bfe0e654a0ede285da46c9bd88 (diff)
downloadchocolate-doom-ded5e702b8f28f9eb2d5322d47f0cd08e93cb74b.tar.gz
chocolate-doom-ded5e702b8f28f9eb2d5322d47f0cd08e93cb74b.tar.bz2
chocolate-doom-ded5e702b8f28f9eb2d5322d47f0cd08e93cb74b.zip
+ Found nearly duplicate names (MT_MINIMISSLE and MT_MINIMISLE).
Corrected names + Majority of player action code pointers implemented + Removed all unused Doom player codepointers + P_SpawnPlayerMissile now returns a mobj Subversion-branch: /branches/strife-branch Subversion-revision: 2009
Diffstat (limited to 'src/strife/p_mobj.c')
-rw-r--r--src/strife/p_mobj.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/strife/p_mobj.c b/src/strife/p_mobj.c
index a64397d8..5f7e258a 100644
--- a/src/strife/p_mobj.c
+++ b/src/strife/p_mobj.c
@@ -1156,11 +1156,9 @@ mobj_t* P_SpawnFacingMissile(mobj_t* source, mobj_t* target, mobjtype_t type)
//
// P_SpawnPlayerMissile
// Tries to aim at a nearby monster
+// villsa [STRIFE] now returns a mobj
//
-void
-P_SpawnPlayerMissile
-( mobj_t* source,
- mobjtype_t type )
+mobj_t* P_SpawnPlayerMissile(mobj_t* source, mobjtype_t type)
{
mobj_t* th;
angle_t an;
@@ -1219,6 +1217,8 @@ P_SpawnPlayerMissile
th->momz = FixedMul( th->info->speed, slope);
P_CheckMissileSpawn (th);
+
+ return th;
}
//