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

Method Squad_Switch_Timer

Source/Fodder.cpp:19680–19700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19678}
19679
19680void cFodder::Squad_Switch_Timer() {
19681
19682 if (!mSquad_Select_Timer)
19683 return;
19684
19685 --mSquad_Select_Timer;
19686 if (mSquad_Select_Timer)
19687 return;
19688
19689 if (mSquad_Selected >= 0)
19690 return;
19691
19692 for (int16 Data0 = 2; Data0 >= 0; --Data0) {
19693
19694 if (mSquads_TroopCount[Data0]) {
19695 Squad_Switch_To(Data0);
19696 return;
19697 }
19698
19699 }
19700}
19701
19702void cFodder::Squad_Switch_To(int16 pData0) {
19703

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected