summaryrefslogtreecommitdiffhomepage
path: root/src/portalcolours.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-06-02 01:26:45 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-06-02 01:30:26 +0100
commit3ebe43eb75806990a402aafd5858de615d5c1cca (patch)
tree16edcb4b560520ad5225673e1a8ad45facc20c40 /src/portalcolours.c
parent74563bfb8c506150172b9bbf73d828372add3394 (diff)
Solve the error logging situation
Diffstat (limited to 'src/portalcolours.c')
-rw-r--r--src/portalcolours.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/portalcolours.c b/src/portalcolours.c
index 00eb96b..750ee19 100644
--- a/src/portalcolours.c
+++ b/src/portalcolours.c
@@ -19,7 +19,7 @@
#include "con_.h"
#include "engineapi.h"
-#include "extmalloc.h"
+#include "errmsg.h"
#include "gametype.h"
#include "hook.h"
#include "intdefs.h"
@@ -123,13 +123,13 @@ bool portalcolours_init(void *clientlib) { // ... should libs be globals?
if (!GAMETYPE_MATCHES(Portal)) return false;
#ifdef _WIN32
if (!find_UTIL_Portal_Color(clientlib)) {
- con_warn("portalcolours: error: couldn't find UTIL_Portal_Color\n");
+ errmsg_errorx("couldn't find UTIL_Portal_Color");
return false;
}
orig_UTIL_Portal_Color = (UTIL_Portal_Color_func)hook_inline(
(void *)orig_UTIL_Portal_Color, (void *)&hook_UTIL_Portal_Color);
if (!orig_UTIL_Portal_Color) {
- con_warn("portalcolours: error: couldn't hook UTIL_Portal_Color\n");
+ errmsg_errorsys("couldn't hook UTIL_Portal_Color");
return false;
}
sst_portal_colour0->base.flags &= ~CON_HIDDEN;