Better protect allocated Ogre character data; proper blend path setting

This commit is contained in:
2026-02-08 18:17:48 +03:00
parent afc5ab02a3
commit 56436ea652
4 changed files with 42 additions and 10 deletions

View File

@@ -328,6 +328,15 @@ public:
if (action == "sit") {
jactionPrereq["is_seated"] = 0;
jactionEffect["is_seated"] = 1;
} else if (action == "use") {
if (props["tags"].find("toilet") !=
props["tags"].end()) {
std::cout << "toilet" << std::endl;
OgreAssert(false, "props: " + props.dump(4));
} else
OgreAssert(false, "props: " + props.dump(4));
} else {
OgreAssert(false, "props: " + props.dump(4));
}
Blackboard actionPrereq({ jactionPrereq });
Blackboard actionEffect({ jactionEffect });