Skip to content

Commit

Permalink
Merge pull request #411 from avaraline/fix-frag-scout
Browse files Browse the repository at this point in the history
kill some spectator frags
  • Loading branch information
Ymihere03 authored Jun 21, 2024
2 parents f6386c1 + 32184eb commit c7cc110
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/game/CAbstractPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1384,10 +1384,12 @@ void CAbstractPlayer::KeyboardControl(FunctionTable *ft) {
}
}

// Disable scout controls while spectating
if (winFrame < 0 && !freeView && itsGame->GetSpectatePlayer() == NULL) {
// Disable local scout controls while spectating (players in the game still control their scouts)
if (winFrame < 0 && !itsManager->IsDeadOrDone()) {
Boolean doRelease = false;

// SDL_Log("keys> fn=%d: down=%08x, held=%08x, up=%08x\n",
// itsGame->frameNumber, ft->down, ft->held, ft->up);
if (TESTFUNC(kfuScoutView, ft->down)) {
if (!scoutView && !scoutIdent) {
doRelease = true;
Expand Down
2 changes: 1 addition & 1 deletion src/game/CGoody.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,6 @@ void CGoody::FrameAction() {
// the goody heading can make a difference in determing a collision with a Hector
// FRandSeed += heading;
UpdateFRandSeed((uint32_t)heading);
// SDL_Log("fn = %ld, goody=%ld: heading = %8d, FRandSeed = %10d\n",
// SDL_Log("fn = %d, goody=%ld: heading = %8d, FRandSeed = %10d\n",
// itsGame->frameNumber, ident, heading, (Fixed)FRandSeed);
}

0 comments on commit c7cc110

Please sign in to comment.