Fix some nits

This commit is contained in:
Nicholas Hastings 2014-09-03 10:50:11 -07:00
parent e11fec9ba1
commit 3fba1d2817
2 changed files with 3 additions and 3 deletions

View File

@ -334,7 +334,7 @@ static cell_t sm_GetClientIP(IPluginContext *pCtx, const cell_t *params)
// Must match clients.inc
enum class AuthStringType
{
Engine,
Engine = 0,
Steam2,
Steam3,
SteamID64,
@ -405,7 +405,7 @@ static cell_t SteamIDToLocal(IPluginContext *pCtx, int index, AuthStringType aut
universe = 0;
}
snprintf(szAuth, sizeof(szAuth), "STEAM_%u:%u:%u", universe, accountId % 2, accountId >> 1);
snprintf(szAuth, sizeof(szAuth), "STEAM_%u:%u:%u", universe, accountId & 1, accountId >> 1);
}
else if (instance != 1)
{

View File

@ -56,7 +56,7 @@ enum NetFlow
*/
enum AuthStringType
{
AuthString_Engine, /**< The game-specific auth string as returned from the engine */
AuthString_Engine = 0, /**< The game-specific auth string as returned from the engine */
// The following are only available on games that support Steam authentication.
AuthString_Steam2, /**< Steam2 rendered format, ex "STEAM_1:1:4153990" */