mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-12 02:08:09 +08:00
fix(renderer): fix renderer
This commit is contained in:
1 parent
8f07ca4c98
commit
9530fd24c0
14 files changed
+146
-44
No files matched your search
@@ -1,6 +1,7 @@
|
||||
#include "PlayerCommand.hpp"
|
||||
|
||||
#include "game/backend/Players.hpp"
|
||||
#include "game/backend/Self.hpp"
|
||||
|
||||
namespace YimMenu
|
||||
{
|
||||
@@ -13,7 +14,8 @@ namespace YimMenu
|
||||
void PlayerAllCommand::OnCall()
|
||||
{
|
||||
for (auto& p : Players::GetPlayers())
|
||||
m_PlayerCommand->Call(p.second);
|
||||
if (p.second.IsValid() && (!Self::GetPlayer().IsValid() || p.second.GetId() != Self::GetPlayer().GetId()))
|
||||
m_PlayerCommand->Call(p.second);
|
||||
}
|
||||
|
||||
PlayerCommand::PlayerCommand(std::string name, std::string label, std::string description, int num_args, bool all_version) :
|
||||
|
||||
Reference in new issue
Block a user