From 70bd147c68f7c4d634be38a00b3c983800a0145b Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Sat, 30 Nov 2019 00:38:26 +1000 Subject: [PATCH] Attempt to decompile ai0104 --- src/game/chr/chraicommands.c | 14 ++++++++++++++ src/include/constants.h | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/game/chr/chraicommands.c b/src/game/chr/chraicommands.c index 88fe0dc27..a199181c4 100644 --- a/src/game/chr/chraicommands.c +++ b/src/game/chr/chraicommands.c @@ -8499,6 +8499,20 @@ glabel ai0104 /* f058b64: acab0438 */ sw $t3,0x438($a1) ); +// Mismatch due to temporary registers +//bool ai0104(void) +//{ +// if (g_Vars.chrdata->proppreset1 >= 0) { +// struct defaultobj *obj = g_Vars.positions[g_Vars.chrdata->proppreset1].entity; +// obj->hidden &= ~OBJHIDDENFLAG_00200000; +// } +// +// g_Vars.chrdata->proppreset1 = -1; +// g_Vars.aioffset += 2; +// +// return false; +//} + /** * @cmd 0105 */ diff --git a/src/include/constants.h b/src/include/constants.h index cc0fcab23..ced4fd8cd 100644 --- a/src/include/constants.h +++ b/src/include/constants.h @@ -459,7 +459,8 @@ #define OBJECTFLAG2_80000000 0x80000000 // Not used in scripts #define OBJHIDDENFLAG_ACTIVATED_BY_BOND 0x00004000 -#define OBJHIDDENFLAG_ACTIVATED_BY_COOP 0x00040000 +#define OBJHIDDENFLAG_ACTIVATED_BY_BOND 0x00004000 +#define OBJHIDDENFLAG_00200000 0x00200000 #define OBJTYPE_DOOR 0x01 #define OBJTYPE_DOORSCALE 0x02