diff options
author | rodri <rgl@antares-labs.eu> | 2023-02-23 16:31:16 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-02-23 16:31:16 +0000 |
commit | 5052a27ece26976e3bec769896bbdc65d9e5ede2 (patch) | |
tree | 173b7afa030d48c22186dee89eb26bb83b84e5b4 /universe.c | |
parent | d40305baf8a0722cf6128520a5b792fc173c5a93 (diff) | |
download | musw-5052a27ece26976e3bec769896bbdc65d9e5ede2.tar.gz musw-5052a27ece26976e3bec769896bbdc65d9e5ede2.tar.bz2 musw-5052a27ece26976e3bec769896bbdc65d9e5ede2.zip |
(inefficiently) send bullets state and paint them.
Diffstat (limited to 'universe.c')
-rw-r--r-- | universe.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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++; |