aboutsummaryrefslogtreecommitdiff
path: root/src/map.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-06-12 02:09:27 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-06-12 02:09:27 -0300
commit05ec30b99472e8c17cd33c29d0e7859e02dc9fc8 (patch)
treeddeb2236778e69c4bc35a5c4e85d2e5e88dd737e /src/map.cc
parent60b89174c6b6300079344267bae60d74347e1fa5 (diff)
downloadgame-05ec30b99472e8c17cd33c29d0e7859e02dc9fc8.tar.gz
game-05ec30b99472e8c17cd33c29d0e7859e02dc9fc8.zip
more work on `operate.cc`
Diffstat (limited to 'src/map.cc')
-rw-r--r--src/map.cc6
1 files changed, 3 insertions, 3 deletions
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);