1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-01-24 17:26:41 +00:00

pushed too soon

This commit is contained in:
fgenesis 2023-04-18 02:22:19 +02:00
parent 4cb2d7ced4
commit 6d6697fd72

View file

@ -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;
}
}