mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-03 13:35:26 +01:00
Merge remote-tracking branch 'origin/staging' into feat/switch-run-through
This commit is contained in:
@@ -12,6 +12,7 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include "simulation/simulationtime.h"
|
||||
#include "simulation/simulationenvironment.h"
|
||||
#include "simulation/simulationtest.h"
|
||||
#include "simulation/simulationsnapshotworld.h"
|
||||
#include "simulation/blackboxrecorder.h"
|
||||
|
||||
#include "utilities/Globals.h"
|
||||
@@ -568,6 +569,10 @@ void state_manager::process_commands() {
|
||||
vehicle->Mechanik->PutCommand(command, commanddata.param1, commanddata.param2, &location);
|
||||
}
|
||||
|
||||
if (commanddata.command == user_command::snapshotsave && commanddata.action == GLFW_PRESS) {
|
||||
snapshot::save_now();
|
||||
}
|
||||
|
||||
if (commanddata.command == user_command::quitsimulation) {
|
||||
// TBD: allow clients to go into offline mode?
|
||||
Application.queue_quit(true);
|
||||
|
||||
Reference in New Issue
Block a user