You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
// Clear the bitmap data etc of the altered scene, we don't need to copy that over
2968
2968
pAlteredScene->ClearData();
2969
+
2970
+
// Clear waypoints on resident brains, otherwise when they're cloned they try to update their move paths, which requires a material bitmap (which we destroyed when we cleared data above).
2971
+
for (int player = Players::PlayerOne; player < Players::MaxPlayerCount; ++player) {
2972
+
if (Actor *residentBrain = dynamic_cast<Actor *>(pAlteredScene->GetResidentBrain(player))) {
2973
+
residentBrain->ClearAIWaypoints();
2974
+
}
2975
+
}
2969
2976
// Deep copy over all the edits made to the newly played Scene
0 commit comments