Uninline obj_set_seen

This commit is contained in:
Alexander Batalov 2022-10-05 13:49:18 +03:00
parent 1cda2beef7
commit 90942c46b2
2 changed files with 11 additions and 1 deletions

View File

@ -1494,7 +1494,8 @@ int objectSetLocation(Object* obj, int tile, int elevation, Rect* rect)
objectListNode = objectListNode->next; objectListNode = objectListNode->next;
} }
_obj_seen[tile >> 3] |= 1 << (tile & 7); // NOTE: Uninline.
obj_set_seen(tile);
int v14 = tile % 200 / 2; int v14 = tile % 200 / 2;
int v15 = tile / 200 / 2; int v15 = tile / 200 / 2;
@ -3098,6 +3099,14 @@ void _obj_delete_intersect_list(ObjectWithFlags** entriesPtr)
} }
} }
// NOTE: Inlined.
//
// 0x48C76C
void obj_set_seen(int tile)
{
_obj_seen[tile >> 3] |= 1 << (tile & 7);
}
// 0x48C788 // 0x48C788
void _obj_clear_seen() void _obj_clear_seen()
{ {

View File

@ -89,6 +89,7 @@ int objectClearOutline(Object* obj, Rect* rect);
int _obj_intersects_with(Object* object, int x, int y); int _obj_intersects_with(Object* object, int x, int y);
int _obj_create_intersect_list(int x, int y, int elevation, int objectType, ObjectWithFlags** entriesPtr); int _obj_create_intersect_list(int x, int y, int elevation, int objectType, ObjectWithFlags** entriesPtr);
void _obj_delete_intersect_list(ObjectWithFlags** a1); void _obj_delete_intersect_list(ObjectWithFlags** a1);
void obj_set_seen(int tile);
void _obj_clear_seen(); void _obj_clear_seen();
void _obj_process_seen(); void _obj_process_seen();
char* objectGetName(Object* obj); char* objectGetName(Object* obj);