Fix sim.neighbours yielding the center particle
The wiki says it shouldn't. Broken in 6a6b14f871
.
This commit is contained in:
parent
90004242d6
commit
2c04cf510a
@ -2345,6 +2345,10 @@ static int NeighboursClosure(lua_State *l)
|
|||||||
r = 0;
|
r = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (cx == px && cy == py)
|
||||||
|
{
|
||||||
|
r = 0;
|
||||||
|
}
|
||||||
if (r)
|
if (r)
|
||||||
{
|
{
|
||||||
lua_pushnumber(l, x);
|
lua_pushnumber(l, x);
|
||||||
|
Reference in New Issue
Block a user