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

Method Sprite_Find_HumanVehicles

Source/Fodder.cpp:2798–2820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2796}
2797
2798void cFodder::Sprite_Find_HumanVehicles() {
2799
2800 if (mSprite_HumanVehicles_Found)
2801 return;
2802
2803 mSprite_HumanVehicles_Found = true;
2804
2805 for(auto& Sprite : mSprites) {
2806
2807 if (Sprite.field_0 == -32768)
2808 continue;
2809
2810 // Is not Human?
2811 if (Sprite.field_22 != eSprite_PersonType_Human)
2812 continue;
2813
2814 // Not Enabled?
2815 if (!Sprite.field_65)
2816 continue;
2817
2818 mSprites_HumanVehicles.push_back(&Sprite);
2819 }
2820}
2821
2822void cFodder::Squad_Set_CurrentVehicle() {
2823

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected