diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-06-12 02:09:27 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-06-12 02:09:27 -0300 |
| commit | 05ec30b99472e8c17cd33c29d0e7859e02dc9fc8 (patch) | |
| tree | ddeb2236778e69c4bc35a5c4e85d2e5e88dd737e /src/map.cc | |
| parent | 60b89174c6b6300079344267bae60d74347e1fa5 (diff) | |
| download | game-05ec30b99472e8c17cd33c29d0e7859e02dc9fc8.tar.gz game-05ec30b99472e8c17cd33c29d0e7859e02dc9fc8.zip | |
more work on `operate.cc`
Diffstat (limited to 'src/map.cc')
| -rw-r--r-- | src/map.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |
