summaryrefslogtreecommitdiff
path: root/src/modules/modWall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/modWall.c')
-rwxr-xr-xsrc/modules/modWall.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/modWall.c b/src/modules/modWall.c
index 8376e29..971edc1 100755
--- a/src/modules/modWall.c
+++ b/src/modules/modWall.c
@@ -286,12 +286,18 @@ static void action_eventwall(space_t *space, wall_t *wall, shot_t *shot)
return;
}
- delObjectFromSpaceWithObject(arena->spaceShot, shot, export_fce->fce_destroyShot);
+ //delObjectFromSpaceWithObject(arena->spaceShot, shot, export_fce->fce_destroyShot);
+ shot->del = TRUE;
}
static void action_eventshot(space_t *space, shot_t *shot, space_t *spaceWall)
{
actionSpaceFromLocation(spaceWall, action_eventwall, shot, shot->x, shot->y, shot->w, shot->h);
+
+ if( shot->del == TRUE )
+ {
+ delObjectFromSpaceWithObject(space, shot, export_fce->fce_destroyShot);
+ }
}
int event()