Fix isFlashed

- Fix the way isFlashed works
This commit is contained in:
ifBars
2023-10-24 00:14:23 -06:00
parent 1bfbeaef91
commit 5f2c673987
+2 -4
View File
@@ -267,11 +267,9 @@ namespace hack {
); );
float flashDuration = process->read<float>(pCSPlayerPawn + updater::offsets::m_flFlashDuration); float flashDuration = process->read<float>(pCSPlayerPawn + updater::offsets::m_flFlashDuration);
bool isFlashed; if (flashDuration > 0.1)
if (flashDuration > 0.0)
isFlashed = true;
if (isFlashed)
{ {
std::cout << std::to_string(flashDuration) << std::endl;
render::RenderText( render::RenderText(
g::hdcBuffer, g::hdcBuffer,
screenHead.x + (width / 2 + 5), screenHead.x + (width / 2 + 5),