summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortriclops200 <starfoxprime@gmail.com>2010-07-27 07:44:53 (GMT)
committer FacialTurd <simon@hardwired.org.uk>2010-07-28 13:09:28 (GMT)
commit4bf0a27495ec92319aa210baf4e8a7d920001f5e (patch)
tree4649bc55a890a95308e22331ce36dc9cf011af5a
parent7e2d1ed3c093c8aef4844c55a810adf57a0bed22 (diff)
downloadpowder-4bf0a27495ec92319aa210baf4e8a7d920001f5e.zip
powder-4bf0a27495ec92319aa210baf4e8a7d920001f5e.tar.gz
Fixed a bug with neon creating infinate pressure
-rwxr-xr-xpowder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/powder.c b/powder.c
index 4b52a6d..1917ee6 100755
--- a/powder.c
+++ b/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)