X-Git-Url: http://git.localhorst.tv/?p=space.git;a=blobdiff_plain;f=src%2Fworld%2FUniverse.cpp;h=c5bb915805a324cd240541ffb2f12173cf44d39b;hp=6f2e5c18091ff5b4d4cc1c24d1d4e489e6e97ef5;hb=ffd31714f3edb64ebe16b65878750c6cc5c7e884;hpb=699437a474de8b87ccb6749d44adf740e680d620 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; - } } }