Skip to content

Preferred starting cash from user INI file doesn't show in combo box #2583

@Caball009

Description

@Caball009

StartingCash = 1000000

If the starting cash value is a non-standard value in Network.ini, Skirmish.ini and whatever ini file GameSpy used to use, it won't show in the GUI, but it is in effect.

This is where the starting cash combo box gets set (this calls PopulateStartingCashComboBox):

Applying the preferences happens after that, so the combo box isn't updated:

LANPreferences pref;
slot->setColor( pref.getPreferredColor() );
slot->setPlayerTemplate( pref.getPreferredFaction() );
slot->setNATBehavior(FirewallHelperClass::FIREWALL_TYPE_SIMPLE);
game->setMap( pref.getPreferredMap() );
game->setStartingCash( pref.getStartingCash() );

Same pattern for skirmish and WOL / online.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is not working right, typically is user facingGUIFor graphical user interfaceGenRelates to GeneralsMinorSeverity: Minor < Major < Critical < BlockerZHRelates to Zero Hour

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions