From 90942c46b27d343a3292f5d82ce786decdbf49b8 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Wed, 5 Oct 2022 13:49:18 +0300 Subject: [PATCH] Uninline obj_set_seen --- src/object.cc | 11 ++++++++++- src/object.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/object.cc b/src/object.cc index 220cefc..20924bc 100644 --- a/src/object.cc +++ b/src/object.cc @@ -1494,7 +1494,8 @@ int objectSetLocation(Object* obj, int tile, int elevation, Rect* rect) objectListNode = objectListNode->next; } - _obj_seen[tile >> 3] |= 1 << (tile & 7); + // NOTE: Uninline. + obj_set_seen(tile); int v14 = 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 void _obj_clear_seen() { diff --git a/src/object.h b/src/object.h index 95b1bcb..c1005e4 100644 --- a/src/object.h +++ b/src/object.h @@ -89,6 +89,7 @@ int objectClearOutline(Object* obj, Rect* rect); 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); void _obj_delete_intersect_list(ObjectWithFlags** a1); +void obj_set_seen(int tile); void _obj_clear_seen(); void _obj_process_seen(); char* objectGetName(Object* obj);