mirror of
https://github.com/alicealys/t5-gsc-utils.git
synced 2025-08-30 13:23:13 +00:00
feature(user_info): allow GSC to edit name/clantag
This commit is contained in:
@@ -29,7 +29,7 @@ namespace command
|
||||
|
||||
game::CmdArgs* get_cmd_args()
|
||||
{
|
||||
return reinterpret_cast<game::CmdArgs*>(game::Sys_GetValue(4));
|
||||
return static_cast<game::CmdArgs*>(game::Sys_GetValue(4));
|
||||
}
|
||||
|
||||
void main_handler()
|
||||
@@ -315,7 +315,7 @@ namespace command
|
||||
gsc::method::add("tell", [](const scripting::entity& player, const std::string& msg)
|
||||
{
|
||||
const auto entref = player.get_entity_reference();
|
||||
if (entref.classnum != 0 || entref.entnum >= 18)
|
||||
if (entref.classnum)
|
||||
{
|
||||
throw std::runtime_error("Not a player entity");
|
||||
}
|
||||
|
Reference in New Issue
Block a user