Don't face left when player isn't moving.

This commit is contained in:
Steve 2016-05-14 17:02:51 +01:00
parent eb343ce61d
commit 95876d3437
1 changed files with 4 additions and 4 deletions

View File

@ -708,12 +708,12 @@ static void moveToPlayer(void)
if (dist <= 250)
{
wantedAngle = getAngle(player->x, player->y, player->x + (player->dx * 1000), player->y + (player->dy * 1000));
turnToFace(wantedAngle);
if (player->thrust > 0.1)
{
wantedAngle = getAngle(player->x, player->y, player->x + (player->dx * 1000), player->y + (player->dy * 1000));
turnToFace(wantedAngle);
if (self->thrust > player->thrust)
{
applyFighterBrakes();