mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 03:09:18 +02:00
removed dependencies on the old parser. The code can now be compiled outside of Borland C++
This commit is contained in:
17
Track.cpp
17
Track.cpp
@@ -12,14 +12,13 @@ http://mozilla.org/MPL/2.0/.
|
||||
|
||||
*/
|
||||
|
||||
// nagłówki identyczne w każdym pliku...
|
||||
#pragma hdrstop
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "Track.h"
|
||||
#include "Globals.h"
|
||||
#include "Logs.h"
|
||||
#include "Usefull.h"
|
||||
#include "Texture.h"
|
||||
#include "Timer.h"
|
||||
#include "Globals.h"
|
||||
#include "Ground.h"
|
||||
#include "parser.h"
|
||||
#include "Mover.h"
|
||||
@@ -28,8 +27,6 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include "MemCell.h"
|
||||
#include "Event.h"
|
||||
|
||||
#pragma package(smart_init)
|
||||
|
||||
// 101206 Ra: trapezoidalne drogi i tory
|
||||
// 110720 Ra: rozprucie zwrotnicy i odcinki izolowane
|
||||
|
||||
@@ -3136,13 +3133,13 @@ void TTrack::ConnectionsLog()
|
||||
for (i = 0; i < 2; ++i)
|
||||
{
|
||||
if (SwitchExtension->pPrevs[i])
|
||||
WriteLog("Point " + to_string(i + i + 1) + " -> track " +
|
||||
WriteLog("Point " + std::to_string(i + i + 1) + " -> track " +
|
||||
SwitchExtension->pPrevs[i]->pMyNode->asName + ":" +
|
||||
to_string(int(SwitchExtension->iPrevDirection[i])));
|
||||
std::to_string(int(SwitchExtension->iPrevDirection[i])));
|
||||
if (SwitchExtension->pNexts[i])
|
||||
WriteLog("Point " + to_string(i + i + 2) + " -> track " +
|
||||
WriteLog("Point " + std::to_string(i + i + 2) + " -> track " +
|
||||
SwitchExtension->pNexts[i]->pMyNode->asName + ":" +
|
||||
to_string(int(SwitchExtension->iNextDirection[i])));
|
||||
std::to_string(int(SwitchExtension->iNextDirection[i])));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user