summaryrefslogtreecommitdiffhomepage
path: root/src/l4dwarp.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-05-04 23:10:23 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-05-04 23:10:23 +0100
commitdec9908a01a027b200bedb5270891fc3d354d3bf (patch)
tree386421a2cf6e3c502783b3bc470643e5375c3180 /src/l4dwarp.c
parent10ccb3fe63af983670966a52a267571d041aee1c (diff)
Cheat-protect sst_l4d_testwarp
Don't want people hitting a bind by accident and invalidating their runs instantly.
Diffstat (limited to 'src/l4dwarp.c')
-rw-r--r--src/l4dwarp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/l4dwarp.c b/src/l4dwarp.c
index 94b7911..20f52a5 100644
--- a/src/l4dwarp.c
+++ b/src/l4dwarp.c
@@ -32,7 +32,7 @@ DECL_VFUNC_DYN(void, Teleport, const struct vec3f *pos, const struct vec3f *ang,
const struct vec3f *vel)
DEF_CCMD_HERE_UNREG(sst_l4d_testwarp, "Simulate a bot warping to you",
- CON_SERVERSIDE) {
+ CON_SERVERSIDE | CON_CHEAT) {
struct edict *ed = ent_getedict(con_cmdclient + 1);
if (!ed) { con_warn("error: couldn't access player entity\n"); return; }
void *e = VCALL(ed->ent_unknown, GetBaseEntity); // is this call required?