Forgot the assertions here
This commit is contained in:
parent
1c647007b6
commit
41e58fae2a
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user