Add bugfix for 'invisible bug' glitch

This commit is contained in:
Cuyler36
2025-07-27 22:20:33 -04:00
parent f648ec6b67
commit 456c69dee4
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -47,7 +47,13 @@ extern void aIKB_actor_init(ACTOR* actorx, GAME* game) {
mActor_name_t* fg_p = mFI_GetUnitFG(actorx->world.position);
int init_type;
// @BUG - devs forgot to check for the item variants of the cedar tree.
// This causes the 'invisible bug' glitch.
#ifndef BUGFIXES
if (fg_p != NULL && *fg_p == CEDAR_TREE) {
#else
if (fg_p != NULL && (*fg_p == CEDAR_TREE || *fg_p == CEDAR_TREE_BELLS || *fg_p == CEDAR_TREE_FTR || *fg_p == CEDAR_TREE_BEES || *fg_p == CEDAR_TREE_LIGHTS)) {
#endif
init_type = aIKB_INIT_CEDAR;
} else {
init_type = aIKB_INIT_TREE;
+6
View File
@@ -71,7 +71,13 @@ extern void aISM_actor_init(ACTOR* actorx, GAME* game) {
mActor_name_t* fg_p = mFI_GetUnitFG(actorx->world.position);
int idx;
// @BUG - devs forgot to check for the item variants of the cedar tree.
// This causes the 'invisible bug' glitch.
#ifndef BUGFIXES
if (fg_p != NULL && *fg_p == CEDAR_TREE) {
#else
if (fg_p != NULL && (*fg_p == CEDAR_TREE || *fg_p == CEDAR_TREE_BELLS || *fg_p == CEDAR_TREE_FTR || *fg_p == CEDAR_TREE_BEES || *fg_p == CEDAR_TREE_LIGHTS)) {
#endif
idx = 1;
} else {
idx = 0;