File diff r25561:3defb050f30b → r25562:30716ba6a396
src/tree_cmd.cpp
Show inline comments
 
@@ -375,13 +375,13 @@ void GenerateTrees()
 
 * @param flags type of operation
 
 * @param p1 tree type, TREE_INVALID means random.
 
 * @param p2 start tile of area-drag of tree plantation
 
 * @param text unused
 
 * @return the cost of this operation or an error
 
 */
 
CommandCost CmdPlantTree(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
 
CommandCost CmdPlantTree(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const std::string &text)
 
{
 
	StringID msg = INVALID_STRING_ID;
 
	CommandCost cost(EXPENSES_OTHER);
 
	const byte tree_to_plant = GB(p1, 0, 8); // We cannot use Extract as min and max are climate specific.
 

	
 
	if (p2 >= MapSize()) return CMD_ERROR;