From 20bf86f851d2ae5bf0800c04dcd73bc1c783c9a6 Mon Sep 17 00:00:00 2001 From: Bob Date: Sun, 4 Apr 2010 14:13:15 +1200 Subject: [PATCH] fixes MethodAccessException in sync --- OpenRA.Game/Sync.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenRA.Game/Sync.cs b/OpenRA.Game/Sync.cs index 1914d2ded5..966c2a4d40 100755 --- a/OpenRA.Game/Sync.cs +++ b/OpenRA.Game/Sync.cs @@ -95,12 +95,12 @@ namespace OpenRA return (Func)d.CreateDelegate( typeof( Func ) ); } - internal static int hash_int2( int2 i2 ) + public static int hash_int2( int2 i2 ) { return ( ( i2.X * 5 ) ^ ( i2.Y * 3 ) ) / 4; } - internal static int hash_tdict( TypeDictionary d ) + public static int hash_tdict( TypeDictionary d ) { int ret = 0; foreach( var o in d ) @@ -108,14 +108,14 @@ namespace OpenRA return ret; } - internal static int hash_actor( Actor a ) + public static int hash_actor( Actor a ) { if( a != null ) return (int)( a.ActorID << 16 ); return 0; } - internal static int hash_player( Player p ) + public static int hash_player( Player p ) { if( p != null ) return p.Index * 0x567;