src/road_cmd.cpp
branchgamebalance
changeset 9907 3b068c3a1c74
parent 9906 6f41b8713b65
child 9908 0fa543611bbe
equal deleted inserted replaced
9906:6f41b8713b65 9907:3b068c3a1c74
   369 		MarkTileDirtyByTile(tile);
   369 		MarkTileDirtyByTile(tile);
   370 	}
   370 	}
   371 	return cost;
   371 	return cost;
   372 }
   372 }
   373 
   373 
       
   374 /**
       
   375  * Switches the rail type on a level crossing.
       
   376  * @param tile        The tile on which the railtype is to be convert.
       
   377  * @param totype      The railtype we want to convert to
       
   378  * @param exec        Switches between test and execute mode
       
   379  * @return            The cost and state of the operation
       
   380  * @retval CMD_ERROR  An error occured during the operation.
       
   381  */
   374 int32 DoConvertStreetRail(TileIndex tile, RailType totype, bool exec)
   382 int32 DoConvertStreetRail(TileIndex tile, RailType totype, bool exec)
   375 {
   383 {
   376 	// not a railroad crossing?
   384 	// not a railroad crossing?
   377 	if (!IsLevelCrossing(tile)) return CMD_ERROR;
   385 	if (!IsLevelCrossing(tile)) return CMD_ERROR;
   378 
   386