]> git.localhorst.tv Git - space.git/blobdiff - src/world/Universe.cpp
added autopilot that sucks
[space.git] / src / world / Universe.cpp
index 6f2e5c18091ff5b4d4cc1c24d1d4e489e6e97ef5..c5bb915805a324cd240541ffb2f12173cf44d39b 100644 (file)
@@ -27,22 +27,6 @@ Ship *Universe::AddShip(const Ship &s) {
 void Universe::Update(float delta) {
        for (Ship &s : ships) {
                s.Update(delta);
-               while (s.pos.x > areaSize.x) {
-                       s.pos.x -= areaSize.x;
-                       ++s.area.x;
-               }
-               while (s.pos.x < 0) {
-                       s.pos.x += areaSize.x;
-                       --s.area.x;
-               }
-               while (s.pos.y > areaSize.y) {
-                       s.pos.y -= areaSize.y;
-                       ++s.area.y;
-               }
-               while (s.pos.y < 0) {
-                       s.pos.y += areaSize.y;
-                       --s.area.y;
-               }
        }
 }