Misc. updates.
This commit is contained in:
parent
edc6127109
commit
1f03b81cca
|
@ -132,8 +132,6 @@ static void doBattle(void)
|
||||||
|
|
||||||
doHud();
|
doHud();
|
||||||
|
|
||||||
doObjectives();
|
|
||||||
|
|
||||||
doStars(ssx, ssy);
|
doStars(ssx, ssy);
|
||||||
|
|
||||||
doBullets();
|
doBullets();
|
||||||
|
@ -146,6 +144,8 @@ static void doBattle(void)
|
||||||
|
|
||||||
doPlayer();
|
doPlayer();
|
||||||
|
|
||||||
|
doObjectives();
|
||||||
|
|
||||||
if (player != NULL)
|
if (player != NULL)
|
||||||
{
|
{
|
||||||
doLocations();
|
doLocations();
|
||||||
|
|
|
@ -447,7 +447,7 @@ void damageFighter(Entity *e, int amount, long flags)
|
||||||
*/
|
*/
|
||||||
if (e->type == ET_FIGHTER && (!(e->aiFlags & AIF_EVADE)) && e != player && e->aiDamagePerSec >= (e->maxHealth + e->maxShield) * 0.1)
|
if (e->type == ET_FIGHTER && (!(e->aiFlags & AIF_EVADE)) && e != player && e->aiDamagePerSec >= (e->maxHealth + e->maxShield) * 0.1)
|
||||||
{
|
{
|
||||||
if ((rand() % 10) > 6)
|
if ((rand() % 10) > 7)
|
||||||
{
|
{
|
||||||
e->action = doAI;
|
e->action = doAI;
|
||||||
e->aiFlags |= AIF_EVADE;
|
e->aiFlags |= AIF_EVADE;
|
||||||
|
|
Loading…
Reference in New Issue