manuals tidy tier 1: suffixes, params, switches, equals-default
This commit is contained in:
@@ -36,9 +36,8 @@ namespace {
|
||||
|
||||
namespace scenes {
|
||||
|
||||
CreditsScene::~CreditsScene() {
|
||||
// No toquem la paleta activa: SetScreenPalette n'ha pres ownership.
|
||||
}
|
||||
// No toquem la paleta activa: SetScreenPalette n'ha pres ownership.
|
||||
CreditsScene::~CreditsScene() = default;
|
||||
|
||||
void CreditsScene::onEnter() {
|
||||
// El vell doCredits no tocava música — heretava la del doSlides
|
||||
|
||||
@@ -41,11 +41,10 @@ namespace scenes {
|
||||
|
||||
IntroNewLogoScene::IntroNewLogoScene() = default;
|
||||
|
||||
IntroNewLogoScene::~IntroNewLogoScene() {
|
||||
// No alliberem `pal_`: JD8_SetScreenPalette n'ha pres ownership i
|
||||
// el proper SetScreenPalette / FadeToPal el lliurarà. Alliberar-lo
|
||||
// ací provocaria double free.
|
||||
}
|
||||
// No alliberem `pal_`: JD8_SetScreenPalette n'ha pres ownership i el
|
||||
// proper SetScreenPalette / FadeToPal el lliurarà. Alliberar-lo ací
|
||||
// provocaria double free.
|
||||
IntroNewLogoScene::~IntroNewLogoScene() = default;
|
||||
|
||||
void IntroNewLogoScene::onEnter() {
|
||||
playMusic("music/menu.ogg");
|
||||
|
||||
@@ -59,11 +59,10 @@ namespace scenes {
|
||||
|
||||
IntroScene::IntroScene() = default;
|
||||
|
||||
IntroScene::~IntroScene() {
|
||||
// No alliberem `pal_`: JD8_SetScreenPalette n'ha pres ownership i el
|
||||
// proper SetScreenPalette / FadeToPal la lliurarà. Alliberar-la ací
|
||||
// provocaria double free.
|
||||
}
|
||||
// No alliberem `pal_`: JD8_SetScreenPalette n'ha pres ownership i el
|
||||
// proper SetScreenPalette / FadeToPal la lliurarà. Alliberar-la ací
|
||||
// provocaria double free.
|
||||
IntroScene::~IntroScene() = default;
|
||||
|
||||
void IntroScene::onEnter() {
|
||||
playMusic("music/menu.ogg");
|
||||
|
||||
@@ -286,8 +286,9 @@ namespace {
|
||||
return variant_1;
|
||||
case 2:
|
||||
return variant_2;
|
||||
default:
|
||||
return variant_0;
|
||||
}
|
||||
return variant_0;
|
||||
}
|
||||
|
||||
auto variant_length(int variant) -> int {
|
||||
@@ -298,8 +299,9 @@ namespace {
|
||||
return sizeof(variant_1) / sizeof(variant_1[0]);
|
||||
case 2:
|
||||
return sizeof(variant_2) / sizeof(variant_2[0]);
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
auto phase_step_count(const SpritePhase& p) -> int {
|
||||
|
||||
Reference in New Issue
Block a user