16
0
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:
Firleju
2015-06-20 16:11:42 +02:00
parent 54cb9159e6
commit d3ab168499
4 changed files with 100 additions and 50 deletions

View File

@@ -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;