projectile_prototypes: remove args init for pp_blast
This commit is contained in:
parent
4e07f66cba
commit
e122229001
1 changed files with 1 additions and 16 deletions
|
@ -53,24 +53,9 @@ static void pp_basic_init_projectile(ProjPrototype *proto, Projectile *p) {
|
|||
#define PP_PLAYER(sprite, width, height) _PP_BASIC(sprite, width, height, 0, 0)
|
||||
#include "projectile_prototypes/player.inc.h"
|
||||
|
||||
static void pp_blast_init_projectile(ProjPrototype *proto, Projectile *p) {
|
||||
pp_basic_init_projectile(proto, p);
|
||||
assert(p->rule == NULL);
|
||||
assert(p->timeout > 0);
|
||||
|
||||
real a1_x, a1_y, a2_x, a2_y;
|
||||
a1_x = rng_range(0, 360);
|
||||
a1_y = rng_real();
|
||||
a2_x = rng_real();
|
||||
a2_y = rng_real();
|
||||
|
||||
p->args[1] = CMPLX(a1_x, a1_y);
|
||||
p->args[2] = CMPLX(a2_x, a2_y);
|
||||
}
|
||||
|
||||
ProjPrototype _pp_blast = {
|
||||
.preload = pp_basic_preload,
|
||||
.init_projectile = pp_blast_init_projectile,
|
||||
.init_projectile = pp_basic_init_projectile,
|
||||
.private = &(PPBasicPriv) {
|
||||
.sprite_name = "part/blast",
|
||||
.size = 128 * (1+I),
|
||||
|
|
Loading…
Reference in a new issue