Skip to content

Commit

Permalink
fix: command tool in raw
Browse files Browse the repository at this point in the history
Fixes #289
  • Loading branch information
ThisAMJ committed Nov 1, 2024
1 parent 3fa141b commit 0be3655
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Features/Tas/TasTools/CommandTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ CommandTool commandTool[2] = {{0}, {1}};

void CommandTool::Apply(TasFramebulk &bulk, const TasPlayerInfo &pInfo) {
if (params.enabled) {
// FetchInputs happens before tools in the tick, so we don't double-execute
bulk.commands.push_back(params.command);
engine->ExecuteCommand(params.command.c_str(), true);
params.enabled = false;
}
Expand Down

0 comments on commit 0be3655

Please sign in to comment.