src/game/Editor/Road_Smoothing.cc
void PlaceRoadMacroAtGridNo( INT32 iMapIndex, INT32 iMacroID )
{
	INT32 i;
	i = gsRoadMacroStartIndex[ iMacroID ];
	while( gRoadMacros[ i ].sMacroID == iMacroID )
	{
		AddToUndoList( iMapIndex + gRoadMacros[ i ].sOffset );
		RemoveAllObjectsOfTypeRange( i, ROADPIECES, ROADPIECES );
		UINT16 usTileIndex = GetTileIndexFromTypeSubIndex(ROADPIECES, i + 1);
		AddObjectToHead( iMapIndex + gRoadMacros[ i ].sOffset, usTileIndex );
		i++;
	}
}
//Road macros vary in size from 3 gridnos to 18 gridnos.  Using the anchor gridno based off of the original
//road system, this function will place the new macro (consisting of multiple road pieces in multiple
//gridnos).
Road macros vary in size from 3 gridnos to 18 gridnos.  Using the anchor gridno based off of the original
road system, this function will place the new macro (consisting of multiple road pieces in multiple
gridnos).
Road macros vary in size from 3 gridnos to 18 gridnos . Using the anchor gridno based off of the original road system this function will place the new macro ( consisting of multiple road pieces in multiple gridnos ) .
void PlaceRoadMacroAtGridNo( INT32 iMapIndex, INT32 iMacroID )
{
	INT32 i;
	i = gsRoadMacroStartIndex[ iMacroID ];
	while( gRoadMacros[ i ].sMacroID == iMacroID )
	{
		AddToUndoList( iMapIndex + gRoadMacros[ i ].sOffset );
		RemoveAllObjectsOfTypeRange( i, ROADPIECES, ROADPIECES );
		UINT16 usTileIndex = GetTileIndexFromTypeSubIndex(ROADPIECES, i + 1);
		AddObjectToHead( iMapIndex + gRoadMacros[ i ].sOffset, usTileIndex );
		i++;
	}
}
void PlaceRoadMacroAtGridNo ( INT32 iMapIndex , INT32 iMacroID ) { INT32 i ; i = gsRoadMacroStartIndex [ iMacroID ] ; while ( gRoadMacros [ i ] . sMacroID == iMacroID ) { AddToUndoList ( iMapIndex + gRoadMacros [ i ] . sOffset ) ; RemoveAllObjectsOfTypeRange ( i , ROADPIECES , ROADPIECES ) ; UINT16 usTileIndex = GetTileIndexFromTypeSubIndex ( ROADPIECES , i + 1 ) ; AddObjectToHead ( iMapIndex + gRoadMacros [ i ] . sOffset , usTileIndex ) ; i ++ ; } }
Road macros vary in size from 3 gridnos to 18 gridnos.
Road macros vary in size from 3 gridnos to 18 gridnos .