mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 02:09:17 +02:00
Add new speed limitations types
SetVelocity - semaphor RoadVelocity - track speed limit SectionVelocity - track speed limit for some distance
This commit is contained in:
10
Event.cpp
10
Event.cpp
@@ -338,6 +338,16 @@ void TEvent::Load(cParser *parser, vector3 *org)
|
||||
bEnabled = false;
|
||||
Params[6].asCommand = cm_SetVelocity;
|
||||
}
|
||||
else if (str == "RoadVelocity")
|
||||
{
|
||||
bEnabled = false;
|
||||
Params[6].asCommand = cm_RoadVelocity;
|
||||
}
|
||||
else if (str == "SectionVelocity")
|
||||
{
|
||||
bEnabled = false;
|
||||
Params[6].asCommand = cm_SectionVelocity;
|
||||
}
|
||||
else if (str == "ShuntVelocity")
|
||||
{
|
||||
bEnabled = false;
|
||||
|
||||
Reference in New Issue
Block a user