jugant amb clang-tidy
This commit is contained in:
@@ -60,11 +60,11 @@ void TiledBG::fillTexture() {
|
||||
SDL_SetRenderTarget(renderer_, canvas_);
|
||||
|
||||
// Rellena la textura con el tile
|
||||
const auto i_max = pos_.w * 2 / TILE_WIDTH_;
|
||||
const auto j_max = pos_.h * 2 / TILE_HEIGHT_;
|
||||
const auto I_MAX = pos_.w * 2 / TILE_WIDTH_;
|
||||
const auto J_MAX = pos_.h * 2 / TILE_HEIGHT_;
|
||||
tile->setSpriteClip(0, 0, TILE_WIDTH_, TILE_HEIGHT_);
|
||||
for (int i = 0; i < i_max; ++i) {
|
||||
for (int j = 0; j < j_max; ++j) {
|
||||
for (int i = 0; i < I_MAX; ++i) {
|
||||
for (int j = 0; j < J_MAX; ++j) {
|
||||
tile->setX(i * TILE_WIDTH_);
|
||||
tile->setY(j * TILE_HEIGHT_);
|
||||
tile->render();
|
||||
|
||||
Reference in New Issue
Block a user