From 5505f28c358a50e9d610784303485cc757459162 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Wed, 28 May 2025 00:39:29 -0300 Subject: finish objects.cc --- src/map.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/map.cc') diff --git a/src/map.cc b/src/map.cc index a5b898d..34c1998 100644 --- a/src/map.cc +++ b/src/map.cc @@ -1830,9 +1830,7 @@ Object CreateObject(void){ return Object(NextObjectID); } -// TODO(fusion): This is only used from `DeleteObject`. Should probably be an -// internal helper. -void DestroyObject(Object Obj){ +static void DestroyObject(Object Obj){ if(!Obj.exists()){ error("DestroyObject: Übergebenes Objekt existiert nicht.\n"); return; @@ -1972,6 +1970,7 @@ void ChangeObject(Object Obj, INSTANCEATTRIBUTE Attribute, uint32 Value){ Obj.setAttribute(Attribute, Value); } +// TODO(fusion): This probably belongs to `operate.cc`. void ChangeObject(Object Obj, ObjectType NewType, uint32 Value){ if(!Obj.exists()){ error("ChangeObject: Übergebenes Objekt existiert nicht (1, NewType=%d).\n", NewType.TypeID); -- cgit v1.2.3