Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/module/spectate.nut
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
function onKeyDown( player, key ) {

if(player.Spawned) {
return;
}
// if(player.Spawned) {
// return;
// }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving dead code is bad.

We should have some can_always_spectate <- true; (near the top) which disables this check (and is self-describing).
Alternatively, if we decide we never want to restrict spectating this way: remove this code altogether.

But commenting out unused code is bad practice.


if ( key == BIND_SPEC_NEXT ) {
if( player.SpectateTarget != null) {
Expand Down