mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-03 18:14:01 +00:00
pushed too soon
This commit is contained in:
parent
4cb2d7ced4
commit
6d6697fd72
1 changed files with 0 additions and 2 deletions
|
@ -705,7 +705,6 @@ Vector Game::getWallNormal(Vector pos, int sampleArea, int obs)
|
||||||
const TileVector t(pos); // snap to grid
|
const TileVector t(pos); // snap to grid
|
||||||
Vector avg;
|
Vector avg;
|
||||||
const float szf = (TILE_SIZE*(sampleArea-1));
|
const float szf = (TILE_SIZE*(sampleArea-1));
|
||||||
int c = 0;
|
|
||||||
for (int x = t.x-sampleArea; x <= t.x+sampleArea; x++)
|
for (int x = t.x-sampleArea; x <= t.x+sampleArea; x++)
|
||||||
{
|
{
|
||||||
for (int y = t.y-sampleArea; y <= t.y+sampleArea; y++)
|
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);
|
v.setLength2D(szf - d);
|
||||||
avg += v;
|
avg += v;
|
||||||
++c;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue