diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2022-07-14 21:42:04 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2022-07-23 18:51:28 +0100 |
commit | 4d1a3a021f1adbd493dbdb4858dc20066af4e0aa (patch) | |
tree | d2c1b76d63dd6c9a7b74ed097ddbe6f3029586a4 /src | |
parent | 3e435bd8e7a64148f7acc9c8bc2fe0493eb09cdf (diff) |
Change some warnings to errors
Diffstat (limited to 'src')
-rw-r--r-- | src/autojump.c | 4 | ||||
-rw-r--r-- | src/demorec.c | 4 | ||||
-rw-r--r-- | src/l4dwarp.c | 2 | ||||
-rw-r--r-- | src/nosleep.c | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/autojump.c b/src/autojump.c index 33b31b8..284dd85 100644 --- a/src/autojump.c +++ b/src/autojump.c @@ -72,11 +72,11 @@ static bool unprot(void *gm) { bool autojump_init(void) { // TODO(featgen): auto-check these factories if (!factory_client || !factory_server) { - errmsg_warnx("missing required factories"); + errmsg_errorx("missing required factories"); return false; } if (!has_vtidx_CheckJumpButton || !has_off_mv) { - errmsg_warnx("missing gamedata entries for this engine"); + errmsg_errorx("missing gamedata entries for this engine"); return false; } diff --git a/src/demorec.c b/src/demorec.c index a0c85a1..17b1d08 100644 --- a/src/demorec.c +++ b/src/demorec.c @@ -209,7 +209,7 @@ static inline bool find_recmembers(void *stoprecording) { bool demorec_init(void) { if (!has_vtidx_StopRecording) { - errmsg_warnx("missing gamedata entries for this engine"); + errmsg_errorx("missing gamedata entries for this engine"); return false; } cmd_record = con_findcmd("record"); @@ -346,7 +346,7 @@ DECL_VFUNC_DYN(int, GetEngineBuildNumber) bool demorec_custom_init(void) { if (!has_vtidx_GetEngineBuildNumber || !has_vtidx_RecordPacket) { - errmsg_warnx("custom: missing gamedata entries for this engine"); + errmsg_errorx("custom: missing gamedata entries for this engine"); return false; } diff --git a/src/l4dwarp.c b/src/l4dwarp.c index 7a77427..76aa230 100644 --- a/src/l4dwarp.c +++ b/src/l4dwarp.c @@ -51,7 +51,7 @@ DEF_CCMD_HERE_UNREG(sst_l4d_testwarp, "Simulate a bot warping to you", bool l4dwarp_init(void) { if (!GAMETYPE_MATCHES(L4Dx)) return false; if (!has_off_entpos || !has_off_eyeang || !has_vtidx_Teleport) { - errmsg_warnx("missing gamedata entries for this engine"); + errmsg_errorx("missing gamedata entries for this engine"); return false; } con_reg(sst_l4d_testwarp); diff --git a/src/nosleep.c b/src/nosleep.c index c849f04..5618ba9 100644 --- a/src/nosleep.c +++ b/src/nosleep.c @@ -42,11 +42,11 @@ bool nosleep_init(void) { con_reg(engine_no_focus_sleep); // TODO(featgen): auto-check these factories if (!factory_inputsystem) { - errmsg_warnx("missing required factories"); + errmsg_errorx("missing required factories"); return false; } if (!has_vtidx_SleepUntilInput) { - errmsg_warnx("missing gamedata entries for this engine"); + errmsg_errorx("missing gamedata entries for this engine"); return false; } void *insys = factory_inputsystem("InputSystemVersion001", 0); |