|
|
@@ -83,7 +83,7 @@ burstshot::create(danmaku::actor * actor, Json::Value const & json,
|
|
|
void burstshot::update(float delta) {
|
|
|
if ((shot_timer.remaining -= delta) <= 0.f) {
|
|
|
shot_timer.remaining = shot_timer.interval;
|
|
|
- std::size_t shots_fired = std::size_t(delta / shots.size());
|
|
|
+ float shots_fired = delta / shots.size();
|
|
|
while (shots_fired-- > 0) {
|
|
|
bullet new_bullet{bullet_proto};
|
|
|
new_bullet.set_velocity(shots[idx].first);
|