Skip to content

Commit

Permalink
Merge pull request NightFyre#3 from JLeegwater/JLeeg
Browse files Browse the repository at this point in the history
added a std::floor() to the coords on the player tab
  • Loading branch information
NuLLxD authored Feb 1, 2024
2 parents 12ed6ef + 731e90e commit 5b990c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ namespace DX11_Base
if (Config.GetPalPlayerCharacter()->GetPalPlayerController() != NULL)
{
SDK::FVector PlayerLocation = p_appc->K2_GetActorLocation();
std::string MyLocation = std::format("X: {} | Y: {} | Z: {}", PlayerLocation.X, PlayerLocation.Y, PlayerLocation.Z);
std::string MyLocation = std::format("X: {} | Y: {} | Z: {}", floor(PlayerLocation.X), floor(PlayerLocation.Y), floor(PlayerLocation.Z));
ImGui::Text(MyLocation.c_str());
if (ImGui::Button("Print Coords", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
g_Console->printdbg(MyLocation.c_str(), Console::Colors::green, p_appc);
Expand Down

0 comments on commit 5b990c6

Please sign in to comment.