mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-04-21 05:15:44 +00:00
tabs
This commit is contained in:
parent
6ec0c5e23c
commit
db90d361a9
@ -456,14 +456,14 @@ namespace gsc
|
|||||||
{
|
{
|
||||||
if (ent.classnum != 0)
|
if (ent.classnum != 0)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Invalid entity");
|
throw std::runtime_error("Invalid entity");
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto client = ent.entnum;
|
const auto client = ent.entnum;
|
||||||
|
|
||||||
if (game::g_entities[client].client == nullptr)
|
if (game::g_entities[client].client == nullptr)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Not a player entity");
|
throw std::runtime_error("Not a player entity");
|
||||||
}
|
}
|
||||||
|
|
||||||
return {(game::g_entities[client].client->flags & 4) != 0};
|
return {(game::g_entities[client].client->flags & 4) != 0};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user