summaryrefslogtreecommitdiff
path: root/src/strife/p_mobj.c
diff options
context:
space:
mode:
authorJames Haley2010-09-22 00:10:59 +0000
committerJames Haley2010-09-22 00:10:59 +0000
commit5aa95863f364142d404a989eec0d28844352811a (patch)
tree96eb6dc5beffe70b852bf039fc81d3c5eb1a7a5d /src/strife/p_mobj.c
parent6ae54ada023321ec629a52cc4f91ccd8e3aa06ff (diff)
downloadchocolate-doom-5aa95863f364142d404a989eec0d28844352811a.tar.gz
chocolate-doom-5aa95863f364142d404a989eec0d28844352811a.tar.bz2
chocolate-doom-5aa95863f364142d404a989eec0d28844352811a.zip
Fixed firing of missiles when looking up/down so that the aimslope
calculated in P_AimLineAttack is used. Added W1 handling for linetype 182 to P_CrossSpecialLine, which lets missiles break windows. Corrected numerous mistakes in the implementation of P_ChangeSwitchTexture. Subversion-branch: /branches/strife-branch Subversion-revision: 2128
Diffstat (limited to 'src/strife/p_mobj.c')
-rw-r--r--src/strife/p_mobj.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/strife/p_mobj.c b/src/strife/p_mobj.c
index 4e630d91..d52669de 100644
--- a/src/strife/p_mobj.c
+++ b/src/strife/p_mobj.c
@@ -1177,6 +1177,8 @@ mobj_t* P_SpawnFacingMissile(mobj_t* source, mobj_t* target, mobjtype_t type)
//
// Tries to aim at a nearby monster
// villsa [STRIFE] now returns a mobj
+// * Also modified to allow up/down look, and to account for foot-clipping
+// by liquid terrain.
//
mobj_t* P_SpawnPlayerMissile(mobj_t* source, mobjtype_t type)
{
@@ -1206,7 +1208,9 @@ mobj_t* P_SpawnPlayerMissile(mobj_t* source, mobjtype_t type)
if (!linetarget)
{
an = source->angle;
- slope = 0;
+
+ // haleyjd 09/21/10: [STRIFE] Removed, for look up/down support.
+ //slope = 0;
}
}