diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-10-29 09:36:32 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-10-29 09:36:32 (GMT) |
| commit | 48be91e4df50ecb5cc52e21556dce0df8474666e (patch) | |
| tree | 9465115c666da9413fac882ec8b9b1813c5c83eb /src/simulation/elements/SPNG.cpp | |
| parent | e08bc6680bb766305486fdbe1d8e6cb6482993af (diff) | |
| parent | 32bdcb89e8609b43e24493d54c57d0fb552a5331 (diff) | |
| download | powder-48be91e4df50ecb5cc52e21556dce0df8474666e.zip powder-48be91e4df50ecb5cc52e21556dce0df8474666e.tar.gz | |
Merge branch 'master' of github.com:FacialTurd/PowderToypp
Diffstat (limited to 'src/simulation/elements/SPNG.cpp')
| -rw-r--r-- | src/simulation/elements/SPNG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/elements/SPNG.cpp b/src/simulation/elements/SPNG.cpp index 37f5a08..95dd12f 100644 --- a/src/simulation/elements/SPNG.cpp +++ b/src/simulation/elements/SPNG.cpp @@ -53,7 +53,7 @@ int Element_SPNG::update(UPDATE_FUNC_ARGS) int limit = 50; if (parts[i].life<limit && sim->pv[y/CELL][x/CELL]<=3&&sim->pv[y/CELL][x/CELL]>=-3&&parts[i].temp<=374.0f) { - int absorbChanceDenom = parts[i].life*1000/limit + 500; + int absorbChanceDenom = parts[i].life*10000/limit + 500; for (rx=-1; rx<2; rx++) for (ry=-1; ry<2; ry++) if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry)) @@ -195,4 +195,4 @@ int Element_SPNG::graphics(GRAPHICS_FUNC_ARGS) } -Element_SPNG::~Element_SPNG() {}
\ No newline at end of file +Element_SPNG::~Element_SPNG() {} |
