MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / GUI_Sidebar_Draw

Method GUI_Sidebar_Draw

Source/GUI_Element.cpp:371–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371void cFodder::GUI_Sidebar_Draw() {
372 Mission_Final_TimeToDie();
373 GUI_Sidebar_SquadIcons_Draw();
374
375 int16 Data0 = 2;
376 int16 Data4 = 2;
377
378 int8* Data20 = &mGUI_RefreshSquadGrenades[2]; //byte_3AC35;
379 int8* Data24 = &mGUI_RefreshSquadRockets[2]; //byte_3AC3B;
380 int16* Data28 = mSquad_Grenades;
381 int16* Data2C = mSquad_Rockets;
382 int16* Data30 = mSquad_CurrentWeapon;
383
384 for (Data0 = 2; Data0 >= 0; --Data0) {
385
386 if (!*Data20)
387 goto loc_2F67A;
388
389 if (*(Data28 + Data4))
390 goto loc_2F67A;
391
392 if (*(Data30 + Data4) != 1)
393 goto loc_2F67A;
394
395 *(Data30 + Data4) = 3;
396 *Data24 = -1;
397
398 loc_2F67A:;
399 if (!*Data24)
400 goto loc_2F6B7;
401
402 if (*(Data2C + Data4))
403 goto loc_2F6B7;
404
405 if (*(Data30 + Data4) != 3)
406 goto loc_2F6B7;
407
408 *(Data30 + Data4) = 1;
409 *(Data20) = -1;
410
411 loc_2F6B7:;
412 --Data20;
413 --Data24;
414 Data4--;
415 }
416
417 Data20 = &mGUI_RefreshSquadGrenades[2];
418 Data24 = &mGUI_RefreshSquadRockets[2];
419
420 for (int16 Data0 = 2; Data0 >= 0; --Data0, --Data20, --Data24) {
421
422 if (!*Data20)
423 goto loc_2F707;
424
425 *Data20 = 0;
426
427 GUI_Sidebar_Grenades_Draw(Data0);
428

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected