diff options
| author | triclops200 <starfoxprime@gmail.com> | 2010-07-27 07:44:53 (GMT) |
|---|---|---|
| committer | FacialTurd <simon@hardwired.org.uk> | 2010-07-28 13:09:28 (GMT) |
| commit | 4bf0a27495ec92319aa210baf4e8a7d920001f5e (patch) | |
| tree | 4649bc55a890a95308e22331ce36dc9cf011af5a | |
| parent | 7e2d1ed3c093c8aef4844c55a810adf57a0bed22 (diff) | |
| download | powder-4bf0a27495ec92319aa210baf4e8a7d920001f5e.zip powder-4bf0a27495ec92319aa210baf4e8a7d920001f5e.tar.gz | |
Fixed a bug with neon creating infinate pressure
| -rwxr-xr-x | powder.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)
|
