mirror of
https://github.com/ytsodacan/Faucet.git
synced 2026-04-23 15:37:07 +00:00
remove leftover comment
This commit is contained in:
parent
8e0b047d33
commit
8c5de84884
|
|
@ -124,7 +124,6 @@ float SDK::GetPlayerHealth(int index) {
|
|||
void SDK::SetPlayerHealth(float health, int index) {
|
||||
auto* p = GetLocalPlayer(index);
|
||||
if (!p) return;
|
||||
// Clamp to valid range so modders can't accidentally set 999 hp
|
||||
if (health < 0.0f) health = 0.0f;
|
||||
if (health > p->getMaxHealth()) health = p->getMaxHealth();
|
||||
p->setHealth(health);
|
||||
|
|
|
|||
Loading…
Reference in a new issue