summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-19 16:27:00 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-19 16:27:00 +0000
commitd02ee64a52007d50a1647641630e77601a43d26d (patch)
tree764c18292f855e71a9562240e4a105d96666c7b3 /src/modules
parent8b93dd8dac51e28bb25ad341f594d21a955c3adb (diff)
- oprava, moduly wall a pipe mohli duplicitne odstranovat tu istu strelu z priestoru
( chybu som neduplikoval ale tipujem, ze je to opravene spravne ) - big arena pouziva vlastnu texturu ako pozadie git-svn-id: http://opensvn.csie.org/tuxanci_ng@160 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/modules')
-rwxr-xr-xsrc/modules/modPipe.c8
-rwxr-xr-xsrc/modules/modWall.c8
2 files changed, 14 insertions, 2 deletions
diff --git a/src/modules/modPipe.c b/src/modules/modPipe.c
index 1e6fe0a..9c5b443 100755
--- a/src/modules/modPipe.c
+++ b/src/modules/modPipe.c
@@ -373,7 +373,8 @@ static void action_eventpipe(space_t *space, pipe_t *pipe, shot_t *shot)
}
else
{
- delObjectFromSpaceWithObject(arena->spaceShot, shot, export_fce->fce_destroyShot);
+ //delObjectFromSpaceWithObject(arena->spaceShot, shot, export_fce->fce_destroyShot);
+ shot->del = TRUE;
}
}
}
@@ -381,6 +382,11 @@ static void action_eventpipe(space_t *space, pipe_t *pipe, shot_t *shot)
static void action_eventshot(space_t *space, shot_t *shot, space_t *spacePipe)
{
actionSpaceFromLocation(spacePipe, action_eventpipe, shot, shot->x, shot->y, shot->w, shot->h);
+
+ if( shot->del == TRUE )
+ {
+ delObjectFromSpaceWithObject(space, shot, export_fce->fce_destroyShot);
+ }
}
int event()
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()