MCPcopy Create free account
hub / github.com/assaultcube/AC / smoverviewflyforbidden

Function smoverviewflyforbidden

source/src/clientgame.cpp:1752–1755  ·  view source on GitHub ↗

SM_OVERVIEW shows all players and their activity - could be used unfairly, possible TODO: allow restricting access by server config and votes

Source from the content-addressed store, hash-verified

1750
1751// SM_OVERVIEW shows all players and their activity - could be used unfairly, possible TODO: allow restricting access by server config and votes
1752bool smoverviewflyforbidden()
1753{
1754 return (player1->team != TEAM_SPECT && !watchingdemo);
1755}
1756
1757// set new spect mode
1758void spectatemode(int mode)

Callers 3

gl_drawhudFunction · 0.85
spectatemodeFunction · 0.85
togglespectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected