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

Method Recruit_Render_Names_UnusedSlots

Source/Recruits.cpp:1683–1704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1681}
1682
1683void cFodder::Recruit_Render_Names_UnusedSlots() {
1684 uint32* Data20 = (uint32*)mGraphics->mImageTemporary.mData->data();
1685
1686 int16 Row = PLATFORM_BASED(0x58, 0x44);
1687
1688 // Squad Troop Names
1689 for (; Row < 0xA0; Row += 0x0C) {
1690 mRecruit_Rendereds.emplace_back(Data20, Row);
1691
1692 mGraphics->Sidebar_Copy_ScreenBuffer(Row, 0x0C, 0, Data20);
1693 }
1694
1695 //seg003:2532
1696 int16 DataC = 0x58;
1697 int16 Slots = PLATFORM_BASED(5, 7); // Empty Slots
1698
1699 for (; Slots >= 0; --Slots) {
1700 mGraphics->Sidebar_Copy_Sprite_To_ScreenBufPtr(0xAC, 0, DataC + 0x18);
1701
1702 DataC += 0x0C;
1703 }
1704}
1705
1706void cFodder::Recruit_Sidebar_Render_SquadName() {
1707 if (mRecruit_RenderedNext == mRecruit_Rendereds.end())

Callers

nothing calls this directly

Tested by

no test coverage detected