Replaced MIN / MAX with std::min and std::max
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1455 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -583,10 +583,10 @@ cCraftingRecipes::cRecipe * cCraftingRecipes::FindRecipe(const cItem * a_Craftin
|
||||
{
|
||||
if (!a_CraftingGrid[x + y * a_GridWidth].IsEmpty())
|
||||
{
|
||||
GridRight = MAX(x, GridRight);
|
||||
GridBottom = MAX(y, GridBottom);
|
||||
GridLeft = MIN(x, GridLeft);
|
||||
GridTop = MIN(y, GridTop);
|
||||
GridRight = std::max(x, GridRight);
|
||||
GridBottom = std::max(y, GridBottom);
|
||||
GridLeft = std::min(x, GridLeft);
|
||||
GridTop = std::min(y, GridTop);
|
||||
}
|
||||
}
|
||||
int GridWidth = GridRight - GridLeft + 1;
|
||||
|
||||
Reference in New Issue
Block a user