BS 0.1.0 Architecture.UpdateTimeline无法一次更新彻底的错误

This commit is contained in:
2025-07-16 14:57:44 +08:00
parent afb206c8d1
commit ff039f1918

View File

@@ -381,15 +381,20 @@ namespace Convention
void UpdateTimeline() void UpdateTimeline()
{ {
for(auto&& [_, timeline] : TimelineQuenes) for (bool stats = true; stats;)
{ {
if (timeline.Quene[timeline.Context].predicate()) stats = false;
for (auto&& [_, timeline] : TimelineQuenes)
{ {
for(auto&& action : timeline.Quene[timeline.Context].actions) if (timeline.Quene[timeline.Context].predicate())
{ {
action(); stats = true;
for (auto&& action : timeline.Quene[timeline.Context].actions)
{
action();
}
timeline.Context++;
} }
timeline.Context++;
} }
} }
} }