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 b51274a3dd
commit 42b7989919
53 changed files with 320 additions and 241 deletions
+2 -1
View File
@@ -765,7 +765,7 @@ void daObjRgate_c::demoProc() {
if (dComIfGp_evmng_getIsAddvance(mStaffID)) {
switch (demo_action) {
case DEMO_ACT_WAIT:
case DEMO_ACT_WAIT: {
int* timer_p = dComIfGp_evmng_getMyIntegerP(mStaffID, "Timer");
if (timer_p == NULL) {
mTimer = 1;
@@ -773,6 +773,7 @@ void daObjRgate_c::demoProc() {
mTimer = *timer_p;
}
break;
}
case DEMO_ACT_OPEN:
mGateLMove = 1000;
mGateRMove = -1000;