Remove AUTO_VAR macro and _toString function (#592)

This commit is contained in:
void_17
2026-03-06 02:11:18 +07:00
committed by GitHub
parent 7d6658fe5b
commit 55231bb8d3
294 changed files with 5067 additions and 5773 deletions

View File

@@ -142,10 +142,8 @@ bool BaseRailTile::Rail::connectsTo(Rail *rail)
{
if(m_bValidRail)
{
AUTO_VAR(itEnd, connections.end());
for (AUTO_VAR(it, connections.begin()); it != itEnd; it++)
for ( const auto& p : connections )
{
TilePos *p = *it; //connections[i];
if (p->x == rail->x && p->z == rail->z)
{
return true;
@@ -159,10 +157,8 @@ bool BaseRailTile::Rail::hasConnection(int x, int y, int z)
{
if(m_bValidRail)
{
AUTO_VAR(itEnd, connections.end());
for (AUTO_VAR(it, connections.begin()); it != itEnd; it++)
for ( const auto& p : connections )
{
TilePos *p = *it; //connections[i];
if (p->x == x && p->z == z)
{
return true;
@@ -332,10 +328,9 @@ void BaseRailTile::Rail::place(bool hasSignal, bool first)
{
level->setData(x, y, z, data, Tile::UPDATE_ALL);
AUTO_VAR(itEnd, connections.end());
for (AUTO_VAR(it, connections.begin()); it != itEnd; it++)
for ( auto& it : connections )
{
Rail *neighbor = getRail(*it);
Rail *neighbor = getRail(it);
if (neighbor == NULL) continue;
neighbor->removeSoftConnections();