aboutsummaryrefslogtreecommitdiff
path: root/src/map.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-05-28 00:39:29 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-05-28 00:39:29 -0300
commit5505f28c358a50e9d610784303485cc757459162 (patch)
tree7756da65dde0d3c125ae71f2ce2afdeb7dc8cd54 /src/map.cc
parent42959207914208438261810757abea43422a28fe (diff)
downloadgame-5505f28c358a50e9d610784303485cc757459162.tar.gz
game-5505f28c358a50e9d610784303485cc757459162.zip
finish objects.cc
Diffstat (limited to 'src/map.cc')
-rw-r--r--src/map.cc5
1 files changed, 2 insertions, 3 deletions
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);