aboutsummaryrefslogtreecommitdiff
path: root/vfx.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-05-23 15:45:13 +0000
committerrodri <rgl@antares-labs.eu>2023-05-23 15:45:13 +0000
commit29c02c33749f9ca21ffa1c22cc2cc37f58584467 (patch)
tree8b3a096c858f7f8ae48b99009740b62de5a38b29 /vfx.c
parent5a725b7c6a1c22800656f218e46b5b16b0d21884 (diff)
downloadmusw-29c02c33749f9ca21ffa1c22cc2cc37f58584467.tar.gz
musw-29c02c33749f9ca21ffa1c22cc2cc37f58584467.tar.bz2
musw-29c02c33749f9ca21ffa1c22cc2cc37f58584467.zip
integrated cmixer for sound and sfx.
fixed the vfx drawing procedure so that it treats p as the center when rendering the sprite.
Diffstat (limited to 'vfx.c')
-rw-r--r--vfx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vfx.c b/vfx.c
index 69f292f..1378158 100644
--- a/vfx.c
+++ b/vfx.c
@@ -26,7 +26,7 @@ vfx_step(Vfx *v, ulong Δt)
static void
vfx_draw(Vfx *v, Image *dst)
{
- v->a->draw(v->a, dst, v->p);
+ v->a->draw(v->a, dst, subpt(v->p, divpt(subpt(v->a->r.max, v->a->r.min), 2)));
}
Vfx *