diff --git a/src/module/command.cpp b/src/module/command.cpp index c8c38b0..0b1afcc 100644 --- a/src/module/command.cpp +++ b/src/module/command.cpp @@ -223,6 +223,8 @@ void command::add_sp_commands() if (ent->health < 1) return; + assert(ent->s.eType == game::native::ET_PLAYER); + ent->client->flags ^= 1; const auto* msg = (ent->client->flags & 1) ? "GAME_NOCLIPON" : "GAME_NOCLIPOFF"; @@ -236,6 +238,8 @@ void command::add_sp_commands() if (ent->health < 1) return; + assert(ent->s.eType == game::native::ET_PLAYER); + ent->client->flags ^= 2; const auto* msg = (ent->client->flags & 2) ? "GAME_UFOON" : "GAME_UFOOFF";