summaryrefslogtreecommitdiff
path: root/src/elements/goo.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-05-07 16:59:50 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-05-07 16:59:50 (GMT)
commit51b17badf4c72270bb762ea795d05d51c8b355e3 (patch)
treeb66671e0496b68114c6e91eedb58bf783d5343c0 /src/elements/goo.cpp
parentfb111f42d00dd8a2041bae970c0913e096ac5101 (diff)
downloadpowder-51b17badf4c72270bb762ea795d05d51c8b355e3.zip
powder-51b17badf4c72270bb762ea795d05d51c8b355e3.tar.gz
A bit of refactoring (elements)
Diffstat (limited to 'src/elements/goo.cpp')
-rw-r--r--src/elements/goo.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/elements/goo.cpp b/src/elements/goo.cpp
deleted file mode 100644
index 6e66468..0000000
--- a/src/elements/goo.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-#include "simulation/Element.h"
-
-int update_GOO(UPDATE_FUNC_ARGS) {
- if (!parts[i].life && sim->pv[y/CELL][x/CELL]>1.0f)
- parts[i].life = rand()%80+300;
- if (parts[i].life)
- {
- float advection = 0.1f;
- parts[i].vx += advection*sim->vx[y/CELL][x/CELL];
- parts[i].vy += advection*sim->vy[y/CELL][x/CELL];
- }
- return 0;
-}