Revert "New server feature: /spec & /pause straight to a player or freeview"

This reverts commit b30a91ec41.
This commit is contained in:
def 2014-05-17 16:39:42 +02:00
parent b30a91ec41
commit fe5bbf6d9b
2 changed files with 2 additions and 6 deletions

View file

@ -334,8 +334,6 @@ void CGameContext::ConTogglePause(IConsole::IResult *pResult, void *pUserData)
return;
}
if (pResult->NumArguments() > 0)
pPlayer->m_SpectatorID = pResult->GetInteger(0);
pPlayer->m_Paused = (pPlayer->m_Paused == CPlayer::PAUSED_PAUSED) ? CPlayer::PAUSED_NONE : CPlayer::PAUSED_PAUSED;
}
@ -363,8 +361,6 @@ void CGameContext::ConToggleSpec(IConsole::IResult *pResult, void *pUserData)
return;
}
if (pResult->NumArguments() > 0)
pPlayer->m_SpectatorID = pResult->GetInteger(0);
pPlayer->m_Paused = (pPlayer->m_Paused == CPlayer::PAUSED_SPEC) ? CPlayer::PAUSED_NONE : CPlayer::PAUSED_SPEC;
}

View file

@ -17,8 +17,8 @@ CHAT_COMMAND("w", "sr", CFGFLAG_CHAT|CFGFLAG_SERVER, ConWhisper, this, "Whisper
CHAT_COMMAND("whisper", "sr", CFGFLAG_CHAT|CFGFLAG_SERVER, ConWhisper, this, "Whisper something to someone (private message)")
CHAT_COMMAND("c", "r", CFGFLAG_CHAT|CFGFLAG_SERVER, ConConverse, this, "Converse with the last person you whispered to (private message)");
CHAT_COMMAND("converse", "r", CFGFLAG_CHAT|CFGFLAG_SERVER, ConConverse, this, "Converse with the last person you whispered to (private message)");
CHAT_COMMAND("pause", "?i", CFGFLAG_CHAT|CFGFLAG_SERVER, ConTogglePause, this, "Toggles pause (/pause -1 for immediate freeview)")
CHAT_COMMAND("spec", "?i", CFGFLAG_CHAT|CFGFLAG_SERVER, ConToggleSpec, this, "Toggles spec (/spec -1 for immediate freeview)")
CHAT_COMMAND("pause", "", CFGFLAG_CHAT|CFGFLAG_SERVER, ConTogglePause, this, "Toggles pause (if not activated on the server, it toggles spec)")
CHAT_COMMAND("spec", "", CFGFLAG_CHAT|CFGFLAG_SERVER, ConToggleSpec, this, "Toggles spec")
CHAT_COMMAND("dnd", "", CFGFLAG_CHAT|CFGFLAG_SERVER, ConDND, this, "Toggle Do Not Disturb (no chat and server messages)")
CHAT_COMMAND("mapinfo", "?r", CFGFLAG_CHAT|CFGFLAG_SERVER, ConMapPoints, this, "Show info about the map with name r gives (current map by default)")
CHAT_COMMAND("map", "?r", CFGFLAG_CHAT|CFGFLAG_SERVER, ConMap, this, "Vote a map by name")