clang-tidy
This commit is contained in:
@@ -13,8 +13,8 @@ Bullet::Bullet(float x, float y, BulletType bullet_type, bool powered, int owner
|
||||
pos_y_(y),
|
||||
bullet_type_(bullet_type),
|
||||
owner_(owner) {
|
||||
vel_x_ = (bullet_type_ == BulletType::LEFT) ? VEL_X_LEFT_
|
||||
: (bullet_type_ == BulletType::RIGHT) ? VEL_X_RIGHT_
|
||||
vel_x_ = (bullet_type_ == BulletType::LEFT) ? VEL_X_LEFT
|
||||
: (bullet_type_ == BulletType::RIGHT) ? VEL_X_RIGHT
|
||||
: 0;
|
||||
|
||||
std::string powered_type = powered ? "powered_" : "normal_";
|
||||
@@ -59,7 +59,7 @@ BulletMoveStatus Bullet::move() {
|
||||
return BulletMoveStatus::OUT;
|
||||
}
|
||||
|
||||
pos_y_ += VEL_Y_;
|
||||
pos_y_ += VEL_Y;
|
||||
if (pos_y_ < param.game.play_area.rect.y - HEIGHT) {
|
||||
disable();
|
||||
return BulletMoveStatus::OUT;
|
||||
|
||||
Reference in New Issue
Block a user