summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
authorJacob1 <jfu614@gmail.com>2012-05-23 22:54:25 (GMT)
committer Jacob1 <jfu614@gmail.com>2012-05-23 22:54:25 (GMT)
commit2656bcec2bc9e14dca844195fab3d3c676fc7689 (patch)
tree8e0f7f25ab690933a84482622375290d7dce41b8 /src/elements
parenta1b7b02f81500e0707cf4c98a943c17351c5505d (diff)
downloadpowder-2656bcec2bc9e14dca844195fab3d3c676fc7689.zip
powder-2656bcec2bc9e14dca844195fab3d3c676fc7689.tar.gz
fix compiling
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/gel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/elements/gel.c b/src/elements/gel.c
index e558342..c64591a 100644
--- a/src/elements/gel.c
+++ b/src/elements/gel.c
@@ -17,6 +17,8 @@
int update_GEL(UPDATE_FUNC_ARGS) {
int r, rx, ry;
+ float dx, dy;
+ char gel;
if (parts[i].tmp>100) parts[i].tmp = 100;
if (parts[i].tmp<0) parts[i].tmp = 0;
for (rx=-2; rx<3; rx++)
@@ -41,7 +43,7 @@ int update_GEL(UPDATE_FUNC_ARGS) {
parts[i].tmp++;
}
- char gel = 0;
+ gel = 0;
if ((r&0xFF)==PT_GEL)
gel = 1;
@@ -58,7 +60,6 @@ int update_GEL(UPDATE_FUNC_ARGS) {
parts[i].tmp--;
}
- float dx, dy;
dx = parts[i].x - parts[r>>8].x;
dy = parts[i].y - parts[r>>8].y;