summaryrefslogtreecommitdiff
path: root/src/simulation
diff options
context:
space:
mode:
authorSimon 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)
commit7ae2369dda35e9649bd5f12b3b91232a168e896e (patch)
tree4f7129c72bcc2fbd187907a4b7714bcfbd427e79 /src/simulation
parent93afe0a1ea45efb5d62608555784580d4513bfd0 (diff)
downloadpowder-7ae2369dda35e9649bd5f12b3b91232a168e896e.zip
powder-7ae2369dda35e9649bd5f12b3b91232a168e896e.tar.gz
Make ngrav negative, fixes #133
Diffstat (limited to 'src/simulation')
-rw-r--r--src/simulation/tools/NGrv.cpp2
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;
}