X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FUniverse.cpp;h=c5bb915805a324cd240541ffb2f12173cf44d39b;hb=1cb5ed22d7772abe6f9893be90f26f46dbde39f7;hp=6f2e5c18091ff5b4d4cc1c24d1d4e489e6e97ef5;hpb=699437a474de8b87ccb6749d44adf740e680d620;p=space.git diff --git a/src/world/Universe.cpp b/src/world/Universe.cpp index 6f2e5c1..c5bb915 100644 --- a/src/world/Universe.cpp +++ b/src/world/Universe.cpp @@ -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; - } } }