Resolve all "illegal jump past declaration/initializer" warnings (#2911)

* resolve illegal jump past declaration/initializer

* pr comments
This commit is contained in:
Niklas Bauer
2025-12-04 13:57:33 +01:00
committed by GitHub
parent f97d334732
commit 4d3f25d34e
53 changed files with 320 additions and 241 deletions
+3 -3
View File
@@ -108,14 +108,14 @@ static int daObjTEN_Delete(daObjTEN_c* i_this) {
void daObjTEN_c::WaitAction() {
switch (field_0x5e9) {
case 0:
case 0: {
speedF = 0.0f;
J3DAnmTransform* anmTransform = (J3DAnmTransform*)dComIfG_getObjectRes("I_Ten", 7);
mMorf->setAnm(anmTransform, 2, 5.0f, 0.0f, 0.0f,
-1.0f);
mMorf->setAnm(anmTransform, 2, 5.0f, 0.0f, 0.0f, -1.0f);
field_0x5e9++;
field_0x5ea[0] = cM_rndF(50.0f) + 50.0f;
break;
}
case 1:
if (fopAcM_searchPlayerDistance(this) < 1500.0f) {
field_0x5ea[0]--;