mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
map work
This commit is contained in:
@@ -39,16 +39,16 @@ node_groups::close()
|
||||
if (typeid(TMemCell) == typeid(*node) && string_ends_with(node->name(), postfix)) {
|
||||
std::string sem_name = node->name().substr(0, node->name().length() - postfix.length());
|
||||
|
||||
map::Semaphores.emplace_back();
|
||||
map::semaphore &sem_info = map::Semaphores.back();
|
||||
map::Semaphores.push_back(std::make_shared<map::semaphore>());
|
||||
auto sem_info = map::Semaphores.back();
|
||||
|
||||
sem_info.location = node->location();
|
||||
sem_info.name = sem_name;
|
||||
sem_info->location = node->location();
|
||||
sem_info->name = sem_name;
|
||||
|
||||
for (basic_event *event : m_groupmap[m_activegroup.top()].events) {
|
||||
if (string_starts_with(event->name(), sem_name)
|
||||
&& event->name().substr(sem_name.length()).find("sem") == std::string::npos) {
|
||||
sem_info.events.push_back(event);
|
||||
sem_info->events.push_back(event);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user