aboutsummaryrefslogtreecommitdiff
path: root/src/objects.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2026-02-02 22:00:39 -0300
committerfusion32 <marcopuzziello@gmail.com>2026-02-03 04:33:01 -0300
commitcd6b26da5db7ef5422b510ba141ab924aaec71bf (patch)
tree081209011fbc77f5206514a2ce92c99d5260abb5 /src/objects.cc
parent9c4fb8b24cb7686f0c12a87d9f014fc309a5e923 (diff)
downloadgame-cd6b26da5db7ef5422b510ba141ab924aaec71bf.tar.gz
game-cd6b26da5db7ef5422b510ba141ab924aaec71bf.zip
minor tweaks
Diffstat (limited to 'src/objects.cc')
-rw-r--r--src/objects.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/objects.cc b/src/objects.cc
index 18fe01c..9130fb2 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -281,8 +281,9 @@ uint32 ObjectType::getAttribute(TYPEATTRIBUTE Attribute){
int ObjectType::getAttributeOffset(INSTANCEATTRIBUTE Attribute){
if(!this->getFlag(InstanceAttributeFlags[Attribute])){
- // TODO(fusion): Review this?
- if(Attribute != CONTENT || !this->getFlag(CHEST)){
+ // NOTE(fusion): The CONTENT attribute seems to be the only one that maps
+ // to two object flags, which is why we have this extra check here.
+ if(!(Attribute == CONTENT && this->getFlag(CHEST))){
return -1;
}
}
@@ -608,7 +609,7 @@ static void LoadConversionList(void){
// NOTE(fusion): Creature container.
OldGroup[99] = 250;
- OldNumber[00] = 0;
+ OldNumber[99] = 0;
NewType[GetNewTypeIndex(250, 0)] = 99;
}