• R/O
  • SSH

OMP: Commit

Multiplayer platform


Commit MetaInfo

Revisionf1fc601453082921010865a50d7b04a8076f67b0 (tree)
Time2009-11-24 01:40:15
AuthorFace
CommiterFace

Log Message

Fixed culture sensitivity in configuration reader.

Change Summary

Incremental Difference

diff -r 3ffdf963759e -r f1fc60145308 Orbitersdk/samples/OMP/Orbiter.Multiplayer.Server/Map.cs
--- a/Orbitersdk/samples/OMP/Orbiter.Multiplayer.Server/Map.cs Tue Jan 27 18:07:55 2009 +0100
+++ b/Orbitersdk/samples/OMP/Orbiter.Multiplayer.Server/Map.cs Mon Nov 23 17:40:15 2009 +0100
@@ -451,7 +451,7 @@
451451 log.Info("["+body.GlobalId+"] named '"+body.Name+"'");
452452 break;
453453 case "Mass":
454- body.Mass = Convert.ToDouble(node[2].Trimmed.Content);
454+ body.Mass = Convert.ToDouble(node[2].Trimmed.Content, CultureInfo.InvariantCulture.NumberFormat);
455455 log.Info("["+body.GlobalId+"] has mass of "+body.Mass+"kg");
456456 break;
457457 }
Show on old repository browser