diff --git a/src/entities/blobs/bob.c b/src/entities/blobs/bob.c index e6c39ab..78d1be5 100644 --- a/src/entities/blobs/bob.c +++ b/src/entities/blobs/bob.c @@ -313,7 +313,7 @@ static void doBobInAir(void) if (--world.bob->jpEffectTimer <= 0) { - addFlameParticles(world.bob->x + (world.bob->facing * 25) + rrnd(-1, 1), world.bob->y + 25 + rrnd(-1, 1)); + addFlameParticles(world.bob->x + (world.bob->facing * 25) + rrnd(-1, 1), world.bob->y + 25 + rrnd(-1, 1), 0); world.bob->jpEffectTimer = 1; } diff --git a/src/entities/blobs/bob.h b/src/entities/blobs/bob.h index af26a01..f92e4c2 100644 --- a/src/entities/blobs/bob.h +++ b/src/entities/blobs/bob.h @@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define SWIM_SPEED 3 #define WALK_SPEED 5 -extern void addFlameParticles(float x, float y); +extern void addFlameParticles(float x, float y, int rising); extern void addTeleportStars(Entity *e); extern void clearControl(int type); extern void fireGrenade(Entity *e); diff --git a/src/entities/bullets/missile.c b/src/entities/bullets/missile.c index f2b4ee5..83057ce 100644 --- a/src/entities/bullets/missile.c +++ b/src/entities/bullets/missile.c @@ -46,7 +46,7 @@ static void tick(void) if (b->health % 2) { - addFlameParticles(b->x + (b->facing * b->w) + rrnd(-2, 2), b->y + (b->h / 2)); + addFlameParticles(b->x + (b->facing * b->w) + rrnd(-2, 2), b->y + (b->h / 2), 0); } } diff --git a/src/entities/bullets/missile.h b/src/entities/bullets/missile.h index 7a64c09..4fffa55 100644 --- a/src/entities/bullets/missile.h +++ b/src/entities/bullets/missile.h @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "../../common.h" extern void addExplosion(float x, float y, int radius, Entity *owner); -extern void addFlameParticles(float x, float y); +extern void addFlameParticles(float x, float y, int rising); extern void initMissile(Bullet *b); extern int rrnd(int low, int high); diff --git a/src/world/particles.c b/src/world/particles.c index 2b90af4..c914107 100644 --- a/src/world/particles.c +++ b/src/world/particles.c @@ -160,6 +160,11 @@ void addSmokeParticles(float x, float y, int rising) p->spriteTime = 5; p->spriteFrame = 0; p->destroyAfterAnim = 1; + + if (rising) + { + p->dy = rrnd(-5, -1); + } } void addFlameParticles(float x, float y, int rising) @@ -176,6 +181,11 @@ void addFlameParticles(float x, float y, int rising) p->spriteTime = 5; p->spriteFrame = 0; p->destroyAfterAnim = 1; + + if (rising) + { + p->dy = rrnd(-5, -1); + } } void addExplosionParticles(float x, float y, float radius, int amount)