From 7ae2369dda35e9649bd5f12b3b91232a168e896e Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sun, 19 Aug 2012 11:30:44 +0100 Subject: Make ngrav negative, fixes #133 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; } -- cgit v0.9.2-21-gd62e