summaryrefslogtreecommitdiffhomepage
path: root/src/alias.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-07-23 19:01:44 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-07-23 19:01:44 +0100
commit5b801b6934bf8361af4cee7556351a7fd43150fa (patch)
treef2420474d076679ddc7d2ee134cc59971fad0606 /src/alias.c
parent5b9864c75c4f9221b418f46cab5934d36aeccef0 (diff)
Document some Portal 2 breakage that needs fixed
Diffstat (limited to 'src/alias.c')
-rw-r--r--src/alias.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/alias.c b/src/alias.c
index 7db5907..9d53e69 100644
--- a/src/alias.c
+++ b/src/alias.c
@@ -22,6 +22,7 @@
#include "dbg.h"
#include "errmsg.h"
#include "extmalloc.h"
+#include "gametype.h"
#include "mem.h"
#include "x86.h"
@@ -97,6 +98,9 @@ static bool find_alias_head(con_cmdcb alias_cb) {
}
bool alias_init(void) {
+ // TODO(compat): no idea why sst_alias_clear crashes in p2, figure out later
+ if (GAMETYPE_MATCHES(Portal2)) return false;
+
struct con_cmd *cmd_alias = con_findcmd("alias");
if (!cmd_alias) {
errmsg_warnx("couldn't find \"alias\" command");