Implemented vanilla-like shift click.
This fixes many visual bugs.
This commit is contained in:
@@ -291,6 +291,23 @@ const cFurnaceRecipe::cRecipe * cFurnaceRecipe::GetRecipeFrom(const cItem & a_In
|
||||
|
||||
|
||||
|
||||
bool cFurnaceRecipe::IsFuel(const cItem & a_Item) const
|
||||
{
|
||||
for (FuelList::const_iterator itr = m_pState->Fuel.begin(); itr != m_pState->Fuel.end(); ++itr)
|
||||
{
|
||||
const cFuel & Fuel = *itr;
|
||||
if ((Fuel.In->m_ItemType == a_Item.m_ItemType) && (Fuel.In->m_ItemCount <= a_Item.m_ItemCount))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
int cFurnaceRecipe::GetBurnTime(const cItem & a_Fuel) const
|
||||
{
|
||||
int BestFuel = 0;
|
||||
|
||||
Reference in New Issue
Block a user