From 05ec30b99472e8c17cd33c29d0e7859e02dc9fc8 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Thu, 12 Jun 2025 02:09:27 -0300 Subject: more work on `operate.cc` --- src/map.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map.cc') diff --git a/src/map.cc b/src/map.cc index 9ce568d..b9085c9 100644 --- a/src/map.cc +++ b/src/map.cc @@ -2017,7 +2017,7 @@ int GetObjectPriority(Object Obj){ }else if(ObjType.isCreatureContainer()){ ObjPriority = PRIORITY_CREATURE; }else{ - ObjPriority = PRIORITY_OTHER; + ObjPriority = PRIORITY_LOW; } return ObjPriority; } @@ -2043,11 +2043,11 @@ void PlaceObject(Object Obj, Object Con, bool Append){ Object Cur(Con.getAttribute(CONTENT)); if(ConType.isMapContainer()){ // TODO(fusion): Review. The loop below was a bit rough but it seems that - // append is forced for non PRIORITY_CREATURE and PRIORITY_OTHER. + // append is forced for non PRIORITY_CREATURE and PRIORITY_LOW. int ObjPriority = GetObjectPriority(Obj); Append = Append || (ObjPriority != PRIORITY_CREATURE - && ObjPriority != PRIORITY_OTHER); + && ObjPriority != PRIORITY_LOW); while(Cur != NONE){ int CurPriority = GetObjectPriority(Cur); -- cgit v1.2.3