Make ships stop after teleporting through the wormhole.

This commit is contained in:
Barra Ó Catháin 2023-03-23 13:46:59 +00:00
parent c6431935d1
commit 6ad92bf07a
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ static inline void calculateGravity(xyVector * starPosition, ship * shipUnderGra
{
shipUnderGravity->position.xComponent = random() % 4000;
shipUnderGravity->position.yComponent = random() % 4000;
shipUnderGravity->velocity.xComponent = 0;
shipUnderGravity->velocity.yComponent = 0;
}
}
else