summaryrefslogtreecommitdiff
path: root/src/strife/p_enemy.c
diff options
context:
space:
mode:
authorSimon Howard2010-09-28 18:51:07 +0000
committerSimon Howard2010-09-28 18:51:07 +0000
commitedf7efbea35087a6f56ed71ed6f5db613386d39d (patch)
tree39c0e0dca58bae3a518ea7b5463ce78741f00985 /src/strife/p_enemy.c
parentaf6ee1723e009ff55e42fd257da03712ba7099f1 (diff)
downloadchocolate-doom-edf7efbea35087a6f56ed71ed6f5db613386d39d.tar.gz
chocolate-doom-edf7efbea35087a6f56ed71ed6f5db613386d39d.tar.bz2
chocolate-doom-edf7efbea35087a6f56ed71ed6f5db613386d39d.zip
Fix compile warnings.
Subversion-branch: /branches/strife-branch Subversion-revision: 2149
Diffstat (limited to 'src/strife/p_enemy.c')
-rw-r--r--src/strife/p_enemy.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/strife/p_enemy.c b/src/strife/p_enemy.c
index 7c5c9117..09cd4dfc 100644
--- a/src/strife/p_enemy.c
+++ b/src/strife/p_enemy.c
@@ -748,10 +748,10 @@ P_LookForPlayers
// Clear target if nothing is visible, or if the target is a
// friendly Rebel or the allied player.
- if(!linetarget ||
- actor->target->type == MT_REBEL1 &&
- actor->target->miscdata == actor->miscdata ||
- actor->target == master)
+ if (linetarget == NULL
+ || (actor->target->type == MT_REBEL1
+ && actor->target->miscdata == actor->miscdata)
+ || actor->target == master)
{
actor->target = NULL;
return false;
@@ -2934,7 +2934,7 @@ void A_BossDeath (mobj_t* actor)
// check for a still living boss
for(th = thinkercap.next; th != &thinkercap; th = th->next)
{
- if(th->function.acp1 == P_MobjThinker)
+ if(th->function.acp1 == (actionf_p1) P_MobjThinker)
{
mobj_t *mo = (mobj_t *)th;
@@ -2974,7 +2974,7 @@ void A_BossDeath (mobj_t* actor)
// it becomes an undead ghost monster. Then it's a REAL spectre ;)
for(th = thinkercap.next; th != &thinkercap; th = th->next)
{
- if(th->function.acp1 == P_MobjThinker)
+ if(th->function.acp1 == (actionf_p1) P_MobjThinker)
{
mobj_t *mo = (mobj_t *)th;
@@ -3071,7 +3071,7 @@ void A_AcolyteSpecial(mobj_t* actor)
for(th = thinkercap.next; th != &thinkercap; th = th->next)
{
- if(th->function.acp1 == P_MobjThinker)
+ if(th->function.acp1 == (actionf_p1) P_MobjThinker)
{
mobj_t *mo = (mobj_t *)th;