diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-05-28 00:39:29 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-05-28 00:39:29 -0300 |
| commit | 5505f28c358a50e9d610784303485cc757459162 (patch) | |
| tree | 7756da65dde0d3c125ae71f2ce2afdeb7dc8cd54 /src/map.cc | |
| parent | 42959207914208438261810757abea43422a28fe (diff) | |
| download | game-5505f28c358a50e9d610784303485cc757459162.tar.gz game-5505f28c358a50e9d610784303485cc757459162.zip | |
finish objects.cc
Diffstat (limited to 'src/map.cc')
| -rw-r--r-- | src/map.cc | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |
