Allow retail customer keys to try out the mod.
authorJohn <John@9244cb4f-d52e-49a9-a756-7d4e53ad8306>
Sun, 20 Jun 2010 09:47:17 +0000 (09:47 +0000)
committerJohn <John@9244cb4f-d52e-49a9-a756-7d4e53ad8306>
Sun, 20 Jun 2010 09:47:17 +0000 (09:47 +0000)
multiwinia/contrib/systemiv/lib/metaserver/authentication.cpp

index 15aece32e521dc4a11311b4cce3d43205f9777fc..dce2973825e967559beb44905b09e7d141fafd8d 100644 (file)
@@ -63,13 +63,9 @@ int Authentication_SimpleKeyCheck( const char *_key, int _gameType )
         return AuthenticationAccepted;\r
     }\r
 \r
-    if( strlen(_key) != AUTHENTICATION_KEYLEN - 1 || \r
-               strncmp( _key, "MDEV", 4 ) != 0 )\r
-    {\r
-        return AuthenticationKeyInvalid;\r
-    }\r
-\r
-    return AuthenticationAccepted;\r
+    return strlen(_key) == AUTHENTICATION_KEYLEN - 1\r
+               ?       AuthenticationAccepted\r
+               :   AuthenticationKeyInvalid;\r
 }\r
 \r
 \r