Some fixes

This commit is contained in:
Federico Cecchetto
2021-12-27 21:03:29 +01:00
parent 89e4edc00b
commit 31920b0692
2 changed files with 13 additions and 9 deletions

View File

@ -29,7 +29,7 @@ namespace notifies
const auto entity_id = game::Scr_GetEntityId(clientNum, 0);
const auto result = callback(entity_id, {message, cmd == "say_team"s});
if (result.is<int>())
if (result.is<int>() && !hidden)
{
hidden = result.as<int>() == 0;
}