From 41e58fae2aed2c0e02f3ae19dc8b8dd3b06df665 Mon Sep 17 00:00:00 2001 From: FutureRave Date: Fri, 11 Mar 2022 17:34:59 +0000 Subject: [PATCH] Forgot the assertions here --- src/module/command.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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";