Saving times and map seeds are displayed correctly in the "load game" menu

This commit is contained in:
Regalis
2016-10-09 17:38:01 +03:00
parent f64743a57c
commit e7e51fbe0c
2 changed files with 4 additions and 11 deletions

View File

@@ -334,10 +334,12 @@ namespace Barotrauma
new XElement("Gamesession"));
var now = DateTime.Now;
doc.Root.Add(new XAttribute("savetime", now.Hour + ":" + now.Minute + ", " + now.ToShortDateString()));
doc.Root.Add(new XAttribute("savetime", now.ToShortTimeString() + ", " + now.ToShortDateString()));
doc.Root.Add(new XAttribute("submarine", submarine==null ? "" : submarine.Name));
doc.Root.Add(new XAttribute("mapseed", Map.Seed));
((SinglePlayerMode)gameMode).Save(doc.Root);
try