Merge branch 'EOL-13' into EOL

# Conflicts:
#	src/p_enemy.c
This commit is contained in:
Alam Ed Arias 2018-11-27 21:48:47 -05:00
commit 69fafaa21d
2 changed files with 21 additions and 22 deletions

View file

@ -13687,7 +13687,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
// Bluebird // Bluebird
{ // MT_FLICKY_01 { // MT_FLICKY_01
-1, // doomednum 570, // doomednum
S_FLICKY_01_OUT, // spawnstate S_FLICKY_01_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate
@ -13714,7 +13714,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
}, },
{ // MT_FLICKY_02 { // MT_FLICKY_02
-1, // doomednum 571, // doomednum
S_FLICKY_02_OUT, // spawnstate S_FLICKY_02_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate
@ -13741,7 +13741,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
}, },
{ // MT_FLICKY_03 { // MT_FLICKY_03
-1, // doomednum 572, // doomednum
S_FLICKY_03_OUT, // spawnstate S_FLICKY_03_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate
@ -13768,7 +13768,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
}, },
{ // MT_FLICKY_04 { // MT_FLICKY_04
-1, // doomednum 573, // doomednum
S_FLICKY_04_OUT, // spawnstate S_FLICKY_04_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate
@ -13795,7 +13795,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
}, },
{ // MT_FLICKY_05 { // MT_FLICKY_05
-1, // doomednum 574, // doomednum
S_FLICKY_05_OUT, // spawnstate S_FLICKY_05_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate
@ -13822,7 +13822,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
}, },
{ // MT_FLICKY_06 { // MT_FLICKY_06
-1, // doomednum 575, // doomednum
S_FLICKY_06_OUT, // spawnstate S_FLICKY_06_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate
@ -13849,7 +13849,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
}, },
{ // MT_FLICKY_07 { // MT_FLICKY_07
-1, // doomednum 576, // doomednum
S_FLICKY_07_OUT, // spawnstate S_FLICKY_07_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate
@ -13876,7 +13876,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
}, },
{ // MT_FLICKY_08 { // MT_FLICKY_08
-1, // doomednum 577, // doomednum
S_FLICKY_08_OUT, // spawnstate S_FLICKY_08_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate
@ -13903,7 +13903,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
}, },
{ // MT_FLICKY_09 { // MT_FLICKY_09
-1, // doomednum 578, // doomednum
S_FLICKY_09_OUT, // spawnstate S_FLICKY_09_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate
@ -13930,7 +13930,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
}, },
{ // MT_FLICKY_10 { // MT_FLICKY_10
-1, // doomednum 579, // doomednum
S_FLICKY_10_OUT, // spawnstate S_FLICKY_10_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate
@ -13957,7 +13957,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
}, },
{ // MT_FLICKY_11 { // MT_FLICKY_11
-1, // doomednum 580, // doomednum
S_FLICKY_11_OUT, // spawnstate S_FLICKY_11_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate
@ -13984,7 +13984,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
}, },
{ // MT_FLICKY_12 { // MT_FLICKY_12
-1, // doomednum 581, // doomednum
S_FLICKY_12_OUT, // spawnstate S_FLICKY_12_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate
@ -14011,7 +14011,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
}, },
{ // MT_FLICKY_13 { // MT_FLICKY_13
-1, // doomednum 582, // doomednum
S_FLICKY_13_OUT, // spawnstate S_FLICKY_13_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate
@ -14038,7 +14038,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
}, },
{ // MT_FLICKY_14 { // MT_FLICKY_14
-1, // doomednum 583, // doomednum
S_FLICKY_14_OUT, // spawnstate S_FLICKY_14_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate
@ -14065,7 +14065,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
}, },
{ // MT_FLICKY_15 { // MT_FLICKY_15
-1, // doomednum 584, // doomednum
S_FLICKY_15_OUT, // spawnstate S_FLICKY_15_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate
@ -14092,7 +14092,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
}, },
{ // MT_FLICKY_16 { // MT_FLICKY_16
-1, // doomednum 585, // doomednum
S_FLICKY_16_OUT, // spawnstate S_FLICKY_16_OUT, // spawnstate
1000, // spawnhealth 1000, // spawnhealth
S_NULL, // seestate S_NULL, // seestate

View file

@ -10884,14 +10884,13 @@ void P_InternalFlickyFly(mobj_t *actor, fixed_t flyspeed, fixed_t targetdist, fi
if (actor->target && abs(chasez - actor->z) > targetdist) if (actor->target && abs(chasez - actor->z) > targetdist)
targetdist = P_AproxDistance(actor->target->x - actor->x, actor->target->y - actor->y); targetdist = P_AproxDistance(actor->target->x - actor->x, actor->target->y - actor->y);
if (actor->spawnpoint && (actor->spawnpoint->options & MTF_AMBUSH)) if (actor->spawnpoint && (actor->spawnpoint->options & MTF_OBJECTSPECIAL))
actor->momz = 0; vertangle = 0;
else else
{
vertangle = (R_PointToAngle2(0, actor->z, targetdist, chasez) >> ANGLETOFINESHIFT) & FINEMASK; vertangle = (R_PointToAngle2(0, actor->z, targetdist, chasez) >> ANGLETOFINESHIFT) & FINEMASK;
P_InstaThrust(actor, actor->angle, FixedMul(FINECOSINE(vertangle), flyspeed));
actor->momz = FixedMul(FINESINE(vertangle), flyspeed); P_InstaThrust(actor, actor->angle, FixedMul(FINECOSINE(vertangle), flyspeed));
} actor->momz = FixedMul(FINESINE(vertangle), flyspeed);
} }
// Function: A_FlickyFly // Function: A_FlickyFly