Skip to content

Commit

Permalink
Fix regional format in save files
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuinny committed Jul 22, 2024
1 parent c14341f commit e3ab5f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Oligopoly.Game/Code/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ private static void SaveGame()
new XElement("GameMode", s_gameMode),
new XElement("Difficulty", s_gameDifficulty),
new XElement("CurrentTurn", s_turnCounter),
new XElement("PlayerMoney", s_playerMoney),
new XElement("PlayerMoney", s_playerMoney.ToString(CultureInfo.CurrentCulture)),
new XElement("SharePrices", s_companies.Select(company => new XElement($"{company.Name.Replace(" ", "_")}", company.SharePrice.ToString(CultureInfo.CurrentCulture)))),
new XElement("BuyedShares", s_companies.Select(company => new XElement($"{company.Name.Replace(" ", "_")}", company.NumberOfShares.ToString(CultureInfo.CurrentCulture))))
new XElement("BuyedShares", s_companies.Select(company => new XElement($"{company.Name.Replace(" ", "_")}", company.NumberOfShares)))
)
);

Expand Down

0 comments on commit e3ab5f3

Please sign in to comment.