Fixed a bug with neon creating infinate pressure
This commit is contained in:
parent
7e2d1ed3c0
commit
4bf0a27495
2
powder.c
2
powder.c
@ -1182,7 +1182,7 @@ void update_particles_i(pixel *vid, int start, int inc){
|
||||
vy[y/CELL][x/CELL] *= ptypes[t].airloss;
|
||||
vx[y/CELL][x/CELL] += ptypes[t].airdrag*parts[i].vx;
|
||||
vy[y/CELL][x/CELL] += ptypes[t].airdrag*parts[i].vy;
|
||||
if(t==PT_GASS) {
|
||||
if(t==PT_GASS||t==PT_NEON) {
|
||||
if(pv[y/CELL][x/CELL]<3.5f)
|
||||
pv[y/CELL][x/CELL] += ptypes[t].hotair*(3.5f-pv[y/CELL][x/CELL]);
|
||||
if(y+CELL<YRES && pv[y/CELL+1][x/CELL]<3.5f)
|
||||
|
Reference in New Issue
Block a user