File diff r25561:3defb050f30b → r25562:30716ba6a396
src/subsidy.cpp
Show inline comments
 
@@ -237,13 +237,13 @@ void CreateSubsidy(CargoID cid, SourceTy
 
 * @param p2 various bitstuffed elements
 
 * - p2 = (bit  0 -  7) - SourceType of destination.
 
 * - p2 = (bit  8 - 23) - SourceID of destination.
 
 * @param text unused.
 
 * @return the cost of this operation or an error
 
 */
 
CommandCost CmdCreateSubsidy(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
 
CommandCost CmdCreateSubsidy(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const std::string &text)
 
{
 
	if (!Subsidy::CanAllocateItem()) return CMD_ERROR;
 

	
 
	CargoID cid = GB(p1, 24, 8);
 
	SourceType src_type = (SourceType)GB(p1, 0, 8);
 
	SourceID src = GB(p1, 8, 16);