Don't face left when player isn't moving.
This commit is contained in:
parent
eb343ce61d
commit
95876d3437
|
@ -707,13 +707,13 @@ static void moveToPlayer(void)
|
|||
int dist = getDistance(self->x, self->y, player->x, player->y);
|
||||
|
||||
if (dist <= 250)
|
||||
{
|
||||
if (player->thrust > 0.1)
|
||||
{
|
||||
wantedAngle = getAngle(player->x, player->y, player->x + (player->dx * 1000), player->y + (player->dy * 1000));
|
||||
|
||||
turnToFace(wantedAngle);
|
||||
|
||||
if (player->thrust > 0.1)
|
||||
{
|
||||
if (self->thrust > player->thrust)
|
||||
{
|
||||
applyFighterBrakes();
|
||||
|
|
Loading…
Reference in New Issue