mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
semaphores controllable on minimap
This commit is contained in:
@@ -134,6 +134,14 @@ void state_manager::process_commands() {
|
||||
Events.AddToQuery(ev, nullptr);
|
||||
}
|
||||
|
||||
if (commanddata.command == user_command::setlight) {
|
||||
uint32_t id = commanddata.action;
|
||||
int light = std::round(commanddata.param1);
|
||||
float state = commanddata.param2;
|
||||
if (id < simulation::Instances.sequence().size())
|
||||
simulation::Instances.sequence()[id]->LightSet(light, state);
|
||||
}
|
||||
|
||||
if (DebugModeFlag) {
|
||||
if (commanddata.command == user_command::timejump) {
|
||||
Time.update(commanddata.param1);
|
||||
|
||||
Reference in New Issue
Block a user