From 5052a27ece26976e3bec769896bbdc65d9e5ede2 Mon Sep 17 00:00:00 2001 From: rodri Date: Thu, 23 Feb 2023 16:31:16 +0000 Subject: (inefficiently) send bullets state and paint them. --- universe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'universe.c') diff --git a/universe.c b/universe.c index be481c9..bce345c 100644 --- a/universe.c +++ b/universe.c @@ -48,10 +48,11 @@ ship_fire(Ship *s) 0, 0, 1, }; - bv = mulpt2(xform(Vec2(1,0), R), 10*THRUST); + bv = mulpt2(xform(Vec2(1,0), R), THRUST); for(i = 0; i < nelem(s->rounds); i++) if(!s->rounds[i].fired){ + s->rounds[i].p = s->p; s->rounds[i].v = addpt2(s->v, bv); s->rounds[i].θ = s->θ; s->rounds[i].fired++; -- cgit v1.2.3