Fix rapid decrease in pressure with GAS/NBLE
This commit is contained in:
parent
e1959c0c0b
commit
65445c51f1
@ -1604,8 +1604,9 @@ void update_particles_i(pixel *vid, int start, int inc)
|
|||||||
pv[y/CELL+1][x/CELL] += ptypes[t].hotair*(3.5f-pv[y/CELL+1][x/CELL]);
|
pv[y/CELL+1][x/CELL] += ptypes[t].hotair*(3.5f-pv[y/CELL+1][x/CELL]);
|
||||||
if (x+CELL<XRES)
|
if (x+CELL<XRES)
|
||||||
{
|
{
|
||||||
|
if (pv[y/CELL][x/CELL+1]<3.5f)
|
||||||
pv[y/CELL][x/CELL+1] += ptypes[t].hotair*(3.5f-pv[y/CELL][x/CELL+1]);
|
pv[y/CELL][x/CELL+1] += ptypes[t].hotair*(3.5f-pv[y/CELL][x/CELL+1]);
|
||||||
if (y+CELL<YRES)
|
if (y+CELL<YRES && pv[y/CELL+1][x/CELL+1]<3.5f)
|
||||||
pv[y/CELL+1][x/CELL+1] += ptypes[t].hotair*(3.5f-pv[y/CELL+1][x/CELL+1]);
|
pv[y/CELL+1][x/CELL+1] += ptypes[t].hotair*(3.5f-pv[y/CELL+1][x/CELL+1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user