Skip to content

Commit

Permalink
protect the rest of the game from custom eval functions
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Dec 19, 2022
1 parent 2280135 commit 88b7860
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Etterna/Screen/Others/ScreenEvaluation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,11 @@ class LunaScreenEvaluation : public Luna<ScreenEvaluation>
}

replay->SetUseReprioritizedNoteRows(useReprioritizedNoterows);
REPLAYS->EnableCustomScoringFunctions();
REPLAYS->InitReplayPlaybackForScore(hs, ts);
REPLAYS->SetPlayerStageStatsForReplay(*replay, pPSS, ts);
REPLAYS->ReleaseReplay(replay); // remove extra reference
REPLAYS->DisableCustomScoringFunctions();
lua_pushboolean(L, true);
return 1;
}
Expand Down

0 comments on commit 88b7860

Please sign in to comment.