#ifdef MEDIA042_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G_F20E_F20J_X30J_P20JA_P20JB_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
void F0278_CHAMPION_ResetDataToStartGame(
#ifdef MEDIA529_F20E_F20J_X30J_P20JA_P20JB_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
void
#endif
)
{
        REGISTER CHAMPION* L0788_ps_Champion;
#ifdef MEDIA076_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G_X30J_A31E_A31M_X31J
        REGISTER char* L0789_pc_Unreferenced; /* BUG0_00 Useless code */
#endif
        REGISTER int16_t L0785_i_ChampionIndex;
#ifdef MEDIA009_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G
        REGISTER int16_t L0786_i_Unreferenced; /* BUG0_00 Useless code */
        char L0790_ac_Unreferenced[8]; /* BUG0_00 Useless code */
#endif
        REGISTER THING L0787_T_Thing;


        if (!G0298_B_NewGame) {
                if ((L0787_T_Thing = G4055_s_LeaderHandObject.Thing) == C0xFFFF_THING_NONE) {
                        G0415_ui_LeaderEmptyHanded = C1_TRUE;
                        G4055_s_LeaderHandObject.IconIndex = C0xFFFF_ICON_NONE;
                        F0069_MOUSE_SetPointer();
                } else {
#ifdef MEDIA722_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_X31J_P31J
                        L0785_i_ChampionIndex = G0411_i_LeaderIndex;
                        G0411_i_LeaderIndex = CM1_CHAMPION_NONE;
#endif
                        F0297_CHAMPION_PutObjectInLeaderHand(L0787_T_Thing, C1_TRUE); /* This call will add the weight of the leader hand object to the Load of the leader a first time */
#ifdef MEDIA722_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_X31J_P31J
                        G0411_i_LeaderIndex = L0785_i_ChampionIndex;
#endif
                }
                L0788_ps_Champion = M516_CHAMPIONS;
                for (L0785_i_ChampionIndex = C00_CHAMPION_FIRST; L0785_i_ChampionIndex < G0305_ui_PartyChampionCount; L0785_i_ChampionIndex++, L0788_ps_Champion++) {
                        M009_CLEAR(L0788_ps_Champion->Attributes, MASK0x0080_NAME_TITLE | MASK0x0100_STATISTICS | MASK0x0200_LOAD | MASK0x0400_ICON | MASK0x0800_PANEL | MASK0x1000_STATUS_BOX | MASK0x2000_WOUNDS | MASK0x4000_VIEWPORT | MASK0x8000_ACTION_HAND);
#ifdef MEDIA020_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G_F20E_F20J_X30J_P20JA_P20JB
                        M008_SET(L0788_ps_Champion->Attributes, MASK0x8000_ACTION_HAND | MASK0x1000_STATUS_BOX | MASK0x0400_ICON);
#endif
                }
#ifdef MEDIA020_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G_F20E_F20J_X30J_P20JA_P20JB
                F0293_CHAMPION_DrawAllChampionStates();
#endif
#ifdef MEDIA720_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
                F0293_CHAMPION_DrawAllChampionStates(MASK0x8000_ACTION_HAND | MASK0x1000_STATUS_BOX | MASK0x0400_ICON);
#endif
                if ((L0785_i_ChampionIndex = G0411_i_LeaderIndex) != CM1_CHAMPION_NONE) {
                        G0411_i_LeaderIndex = CM1_CHAMPION_NONE;
                        F0368_COMMAND_SetLeader(L0785_i_ChampionIndex); /* BUG0_32 The load of a champion with no objects in his inventory is not 0. If you save the game with an object in the leader hand then when you resume or restart the game the weight of the object in the leader hand is permanently added to the load of the leader. When the game is saved, the weight of the leader hand object is substracted from the load of the leader. But when the game is loaded, the weight of the leader hand object is added twice to the load of the leader: a first time by the call to F0297_CHAMPION_PutObjectInLeaderHand above and a second time by this call to F0368_COMMAND_SetLeader */
                }
                if ((L0785_i_ChampionIndex = G0514_i_MagicCasterChampionIndex) != CM1_CHAMPION_NONE) {
                        G0514_i_MagicCasterChampionIndex = CM1_CHAMPION_NONE;
                        F0394_MENUS_SetMagicCasterAndDrawSpellArea(L0785_i_ChampionIndex);
                }
                return;
        }
        G4055_s_LeaderHandObject.Thing = C0xFFFF_THING_NONE;
        G4055_s_LeaderHandObject.IconIndex = C0xFFFF_ICON_NONE;
        G0415_ui_LeaderEmptyHanded = C1_TRUE;
}
#endif
