entity_type_bugs - ryzom/ryzomcore GitHub Wiki


title: Entity Type Bugs description: published: true date: 2023-03-01T05:20:11.694Z tags: editor: markdown dateCreated: 2022-03-11T00:10:50.688Z

[10:06] <Kaetemi> i don't think this line can ever be true
[10:06] <Kaetemi> if (getPersistent().getRyzomType()==RYZOMID::flora)
[10:06] <Kaetemi> getPersistent ->
[10:06] <Kaetemi> return static_cast<CBotFauna&>(CSpawnBot::getPersistent());
[10:06] <Kaetemi> CBotFauna
[10:06] <Kaetemi> RYZOMID::TTypeId getRyzomType() const { return RYZOMID::creature; }
[10:07] <Kaetemi> unless getPersistent is virtual somewhere and overridden that is..
[10:08] <Kaetemi> but it isnt
[09:08] <Kaetemi> and noticed something else in distance prioritizer cpp
[09:08] <Kaetemi> ln 309 etc where it selects which props to send
[09:08] <Kaetemi> it only cares for npc, creature and forageSource entity types
[09:08] <Kaetemi> and basically sends all props for anything else

⚠️ **GitHub.com Fallback** ⚠️