Fix wanted level ui bug

This commit is contained in:
Grinch_ 2021-07-22 00:06:42 +06:00
parent d94a877256
commit 87d8b843c6
4 changed files with 10 additions and 6 deletions

6
.gitignore vendored
View File

@ -1,5 +1,7 @@
.vs/
tools/.vs/
tools/build/
tools/obj/
.vs/CheatMenu/v16/.suo
.vs/CheatMenu/v16/Browse.VC.db
.vs/CheatMenu/v16/Solution.VC.db
@ -28,3 +30,7 @@ tools/.vs/
tools/.vs/CheatMenu/v16/.suo
tools/.vs/CheatMenu/v16/Browse.VC.db
tools/.vs/CheatMenu/v16/Solution.VC.db
tools/CheatMenu.sln
tools/Depend.vcxproj
tools/CheatMenu.vcxproj
tools/Depend.vcxproj.filters

View File

@ -331,6 +331,7 @@ void Player::Draw()
{
int val = pPlayer->m_pPlayerData->m_pWanted->m_nWantedLevel;
int max_wl = pPlayer->m_pPlayerData->m_pWanted->MaximumWantedLevel;
max_wl = max_wl < 6 ? 6 : max_wl;
ImGui::Columns(3, 0, false);
ImGui::Text("Min: 0");

View File

@ -1,4 +1,4 @@
@echo off
premake5.exe vs2019
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\Common7\Tools\VsDevCmd.bat"
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\VsDevCmd.bat"
MsBuild CheatMenu.sln /property:Configuration=Release

View File

@ -24,9 +24,6 @@ workspace "CheatMenu"
cppdialect "C++20"
characterset "MBCS"
staticruntime "On"
flags {
"LinkTimeOptimization"
}
project "Depend"
kind "StaticLib"
@ -92,7 +89,7 @@ project "CheatMenu"
}
filter "configurations:Release"
-- optimize "On"
optimize "On"
links {
"Depend",
"d3d9",