Forgot the assertions here

This commit is contained in:
FutureRave 2022-03-11 17:34:59 +00:00
parent 1c647007b6
commit 41e58fae2a
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -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";