summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/figh.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/elements/figh.c b/src/elements/figh.c
index abed674..74dcf14 100644
--- a/src/elements/figh.c
+++ b/src/elements/figh.c
@@ -45,17 +45,9 @@ int update_FIGH(UPDATE_FUNC_ARGS)
case 1:
if ((pow(tarx-x, 2) + pow(tary-y, 2))<600)
{
- if (figh[2] == PT_FIRE)
+ if (figh[2] == PT_FIRE || figh[2] == PT_LIGH)
figh[0] = (int)figh[0] | 0x08;
}
-
- if ((pow(tarx-x, 2) + pow(tary-y, 2))<300)
- {
- if (figh[2] == PT_FIRE)
- figh[0] = 0x08;
- else
- figh[0] = 0;
- }
else
if (tarx<x)
{
@@ -75,6 +67,8 @@ int update_FIGH(UPDATE_FUNC_ARGS)
break;
}
+ figh[1] = figh[0];
+
run_stickman(figh, UPDATE_FUNC_SUBCALL_ARGS);
return 0;
}