fix debug zeroth particle (#352)
This commit is contained in:
parent
477d2be92c
commit
3a3254f38b
@ -32,7 +32,7 @@ void ParticleDebug::Debug(int mode, int x, int y)
|
|||||||
}
|
}
|
||||||
else if (mode == 1)
|
else if (mode == 1)
|
||||||
{
|
{
|
||||||
if (x < 0 || x >= XRES || y < 0 || y >= YRES || !(i = (sim->pmap[y][x]>>8)) || i < debug_currentParticle)
|
if (x < 0 || x >= XRES || y < 0 || y >= YRES || !sim->pmap[y][x] || (i = (sim->pmap[y][x]>>8)) < debug_currentParticle)
|
||||||
{
|
{
|
||||||
i = NPART;
|
i = NPART;
|
||||||
logmessage << "Updated particles from #" << debug_currentParticle << " to end, updated sim";
|
logmessage << "Updated particles from #" << debug_currentParticle << " to end, updated sim";
|
||||||
|
Reference in New Issue
Block a user