diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-19 10:30:44 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-19 10:30:44 (GMT) |
| commit | 7ae2369dda35e9649bd5f12b3b91232a168e896e (patch) | |
| tree | 4f7129c72bcc2fbd187907a4b7714bcfbd427e79 /src/simulation | |
| parent | 93afe0a1ea45efb5d62608555784580d4513bfd0 (diff) | |
| download | powder-7ae2369dda35e9649bd5f12b3b91232a168e896e.zip powder-7ae2369dda35e9649bd5f12b3b91232a168e896e.tar.gz | |
Make ngrav negative, fixes #133
Diffstat (limited to 'src/simulation')
| -rw-r--r-- | src/simulation/tools/NGrv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/tools/NGrv.cpp b/src/simulation/tools/NGrv.cpp index 7a097d5..525d697 100644 --- a/src/simulation/tools/NGrv.cpp +++ b/src/simulation/tools/NGrv.cpp @@ -11,7 +11,7 @@ Tool_NGrv::Tool_NGrv() int Tool_NGrv::Perform(Simulation * sim, Particle * cpart, int x, int y, float strength) { - sim->gravmap[((y/CELL)*(XRES/CELL))+(x/CELL)] += 0.03f*strength; + sim->gravmap[((y/CELL)*(XRES/CELL))+(x/CELL)] -= 0.03f*strength; return 1; } |
