From bf597dc52b12bf702f3b35f84dda8b28fc849e4f Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Tue, 29 Nov 2016 16:26:21 +0700 Subject: [PATCH] Removed useless code --- Source/GameDraw.cpp | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/Source/GameDraw.cpp b/Source/GameDraw.cpp index 4994b11..578e6f3 100644 --- a/Source/GameDraw.cpp +++ b/Source/GameDraw.cpp @@ -1434,45 +1434,9 @@ int Game::DrawGLScene(StereoSide side) XYZ center; float radius; float distcheck; - int numliveplayers = 0; - center = 0; - for (unsigned i = 0; i < Person::players.size(); i++) { - if (!Person::players[i]->dead) - numliveplayers++; - } - - int numadd = 0; - - for (int i = 0; i < objects.numobjects; i++) { - if (objects.type[i] == treetrunktype || objects.type[i] == boxtype) { - center += objects.position[i]; - numadd++; - } - } - for (unsigned i = 0; i < Person::players.size(); i++) { - if (!Person::players[i]->dead) - center += Person::players[i]->coords; - } - center /= numadd + numliveplayers; center = Person::players[0]->coords; - float maxdistance = 0; - float tempdist; - for (int i = 0; i < objects.numobjects; i++) { - tempdist = distsq(¢er, &objects.position[i]); - if (tempdist > maxdistance) { - maxdistance = tempdist; - } - } - for (unsigned i = 0; i < Person::players.size(); i++) { - if (!Person::players[i]->dead) { - tempdist = distsq(¢er, &Person::players[i]->coords); - if (tempdist > maxdistance) { - maxdistance = tempdist; - } - } - } radius = 110; glScalef(.25 / radius * 256 * terrain.scale * .4, .25 / radius * 256 * terrain.scale * .4, 1); -- 2.39.5