Skip to content

Commit

Permalink
update rift, fix bot isCheating
Browse files Browse the repository at this point in the history
  • Loading branch information
Prevter committed Nov 23, 2024
1 parent 271d53c commit d37b261
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ No Android support yet, but we're working on it!
* <cy>Updated</c> <co>RIFT</c> scripting with more features:
* Added <cg>cfg</c> function to get values from settings
* Improved overall performance and stability
* Fixed some expressions not working as expected
* Added <cg>int</c>, <cg>float</c> and <cg>str</c> functions, to convert variable types
* Added <cg>duration</c> function to convert seconds into a formatted time string
* Added <cg>$</c> operator to evaluate sub-expressions
Expand Down
2 changes: 1 addition & 1 deletion cmake/IncludeLibs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (NOT ANDROID)
endif()
CPMAddPackage("gh:matcool/gd-imgui-cocos#fbd4103")
CPMAddPackage("gh:maxnut/GDReplayFormat#4950cc2")
CPMAddPackage("gh:EclipseMenu/rift#e1997ce")
CPMAddPackage("gh:EclipseMenu/rift#e065e9a")
CPMAddPackage("gh:SpaghettDev/subprocess#e12740b")
CPMAddPackage(
NAME nlohmann_json
Expand Down
2 changes: 1 addition & 1 deletion src/hacks/Bot/Bot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ namespace eclipse::hacks::Bot {
[[nodiscard]] bool isCheating() override {
auto state = config::get<int>("bot.state", 0);
// only check if we are in playback mode and there are inputs
return state != 2 && s_bot.getInputCount() != 0;
return state == 2 && s_bot.getInputCount() != 0;
}
[[nodiscard]] const char* getId() const override { return "Bot"; }
};
Expand Down

0 comments on commit d37b261

Please sign in to comment.