Pasaeta de cppcheck, ale
This commit is contained in:
@@ -52,7 +52,7 @@ Screen::Screen(SDL_Window *window, SDL_Renderer *renderer)
|
||||
|
||||
src_rect_({0, 0, param.game.width, param.game.height}),
|
||||
dst_rect_({0, 0, param.game.width, param.game.height}),
|
||||
border_color_({0x00, 0x00, 0x00}),
|
||||
border_color_(Color(0x00, 0x00, 0x00)),
|
||||
attenuate_effect_(false),
|
||||
fps_ticks_(0),
|
||||
fps_counter_(0),
|
||||
@@ -67,7 +67,7 @@ Screen::Screen(SDL_Window *window, SDL_Renderer *renderer)
|
||||
flash_effect_.enabled = false;
|
||||
flash_effect_.counter = 0;
|
||||
flash_effect_.lenght = 0;
|
||||
flash_effect_.color = {0xFF, 0xFF, 0xFF};
|
||||
flash_effect_.color = Color(0xFF, 0xFF, 0xFF);
|
||||
shake_effect_.enabled = false;
|
||||
shake_effect_.desp = 2;
|
||||
shake_effect_.delay = 3;
|
||||
@@ -481,8 +481,7 @@ void Screen::displayInfo()
|
||||
dbg_print(0, 0, info_resolution_.c_str(), 255, 255, 0);
|
||||
|
||||
// Contador de service_pressed_counter
|
||||
const int counter = globalInputs::service_pressed_counter[0];
|
||||
if (counter > 0)
|
||||
if (const int counter = globalInputs::service_pressed_counter[0]; counter > 0)
|
||||
dbg_print(0, 8, std::to_string(counter).c_str(), 255, 0, 255);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user