clang-tidy modernize
This commit is contained in:
@@ -319,8 +319,8 @@ void Balloon::shiftSprite() {
|
||||
|
||||
// Establece el nivel de zoom del sprite
|
||||
void Balloon::zoomSprite() {
|
||||
sprite_->setZoomW(bouncing_.zoom_w);
|
||||
sprite_->setZoomH(bouncing_.zoom_h);
|
||||
sprite_->setZoomW(bouncing_.horizontal_zoom);
|
||||
sprite_->setZoomH(bouncing_.verical_zoom);
|
||||
}
|
||||
|
||||
// Activa el efecto
|
||||
@@ -341,8 +341,8 @@ void Balloon::disableBounce() {
|
||||
void Balloon::updateBounce() {
|
||||
if (bouncing_.enabled) {
|
||||
const int INDEX = bouncing_.counter / bouncing_.speed;
|
||||
bouncing_.zoom_w = bouncing_.w[INDEX];
|
||||
bouncing_.zoom_h = bouncing_.h[INDEX];
|
||||
bouncing_.horizontal_zoom = bouncing_.horizontal_zoom_values[INDEX];
|
||||
bouncing_.verical_zoom = bouncing_.vertical_zoom_values[INDEX];
|
||||
|
||||
zoomSprite();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user