From 3eb568c6c8c6babbecc8808cfc05a1e222d719f8 Mon Sep 17 00:00:00 2001 From: ReshiramZekrom1 Date: Thu, 9 Nov 2023 08:22:42 +0100 Subject: [PATCH] Update actors_main.cpp (#762) Process damage actor RPC even if damage value is 0.0, for samp compat https://github.com/openmultiplayer/open.mp/issues/761 --- Server/Components/Actors/actors_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Components/Actors/actors_main.cpp b/Server/Components/Actors/actors_main.cpp index 6c59c0b95..cee2b78bd 100644 --- a/Server/Components/Actors/actors_main.cpp +++ b/Server/Components/Actors/actors_main.cpp @@ -36,7 +36,7 @@ class ActorsComponent final : public IActorsComponent, public PlayerConnectEvent return false; } - if (onPlayerDamageActorRPC.Damage <= 0.0f) + if (onPlayerDamageActorRPC.Damage < 0.0f) { return false; }