Compare commits

...

2 Commits

Author SHA1 Message Date
Paul Chote
c0d0c5e346 Revert mono 2.8 deps; causes desyncs. 2010-10-09 18:47:52 +13:00
Chris Forbes
eaabc0d996 fix subtle range error in Random.NextDouble() 2010-10-09 17:50:25 +13:00
2 changed files with 8 additions and 4 deletions

View File

@@ -47,7 +47,11 @@ namespace OpenRA.Thirdparty
public int Next(int low, int high) { return low + Next() % (high - low); }
public int Next(int high) { return Next() % high; }
public double NextDouble() { return Math.Abs(Next() / (double)0x7fffffff); }
public double NextDouble()
{
return (double)(uint)Next() / (double)uint.MaxValue;
}
void Generate()
{

View File

@@ -18,8 +18,8 @@ GAME_PATH=$RESOURCES_PATH
SUPPORT_PATH=~/Library/"Application Support"/OpenRA
# Downloadable content
DEPS_PACKAGE="osx-deps-v3.zip"
DEPS_URL="http://open-ra.org/get-dependency.php?file=osx-deps-v3"
DEPS_PACKAGE="osx-deps-v4.zip"
DEPS_URL="http://open-ra.org/get-dependency.php?file=osx-deps-v4"
RA_PACKAGE="ra-packages.zip"
RA_URL="http://open-ra.org/get-dependency.php?file=ra-packages"
CNC_PACKAGE="cnc-packages.zip"
@@ -75,7 +75,7 @@ fi
# Run the game
cd "${GAME_PATH}"
"${EXE_PATH}"mono --debug --gc=sgen "OpenRA.Game.exe" Game.Mods=$MOD SupportDir=~/Library/"Application Support"/OpenRA
"${EXE_PATH}"mono --debug "OpenRA.Game.exe" Game.Mods=$MOD SupportDir=~/Library/"Application Support"/OpenRA
# Did we crash?
STATUS=$?