summaryrefslogtreecommitdiff
path: root/src/elements/soap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/soap.c')
-rw-r--r--src/elements/soap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/soap.c b/src/elements/soap.c
index 4ed10ac..e130e35 100644
--- a/src/elements/soap.c
+++ b/src/elements/soap.c
@@ -186,13 +186,13 @@ int update_SOAP(UPDATE_FUNC_ARGS)
if ((r&0xFF) == PT_OIL)
{
+ float ax, ay;
+
parts[i].vy -= 0.1f;
parts[i].vy *= 0.5f;
parts[i].vx *= 0.5f;
- float ax, ay;
-
ax = (parts[i].vx + parts[r>>8].vx)/2;
ay = (parts[i].vy + parts[r>>8].vy)/2;