From 6d6697fd72bb8b0e1f0de01f2fad4b8caec183ae Mon Sep 17 00:00:00 2001 From: fgenesis Date: Tue, 18 Apr 2023 02:22:19 +0200 Subject: [PATCH] pushed too soon --- Aquaria/Game.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Aquaria/Game.cpp b/Aquaria/Game.cpp index 95ed063..d41037c 100644 --- a/Aquaria/Game.cpp +++ b/Aquaria/Game.cpp @@ -705,7 +705,6 @@ Vector Game::getWallNormal(Vector pos, int sampleArea, int obs) const TileVector t(pos); // snap to grid Vector avg; const float szf = (TILE_SIZE*(sampleArea-1)); - int c = 0; for (int x = t.x-sampleArea; x <= t.x+sampleArea; x++) { for (int y = t.y-sampleArea; y <= t.y+sampleArea; y++) @@ -720,7 +719,6 @@ Vector Game::getWallNormal(Vector pos, int sampleArea, int obs) { v.setLength2D(szf - d); avg += v; - ++c; } }