summaryrefslogtreecommitdiffstats
path: root/source/CraftingRecipes.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-07 21:59:17 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-07 21:59:17 +0200
commit959797dbcff19bea14f59b6e2cc74378fcd03f52 (patch)
tree7c566805b22e0d1c0a3841a7ec297522bccd1ad7 /source/CraftingRecipes.cpp
parentProtocol132: Replaced magic numbers with symbolic packet names (diff)
downloadcuberite-959797dbcff19bea14f59b6e2cc74378fcd03f52.tar
cuberite-959797dbcff19bea14f59b6e2cc74378fcd03f52.tar.gz
cuberite-959797dbcff19bea14f59b6e2cc74378fcd03f52.tar.bz2
cuberite-959797dbcff19bea14f59b6e2cc74378fcd03f52.tar.lz
cuberite-959797dbcff19bea14f59b6e2cc74378fcd03f52.tar.xz
cuberite-959797dbcff19bea14f59b6e2cc74378fcd03f52.tar.zst
cuberite-959797dbcff19bea14f59b6e2cc74378fcd03f52.zip
Diffstat (limited to '')
-rw-r--r--source/CraftingRecipes.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/CraftingRecipes.cpp b/source/CraftingRecipes.cpp
index b47db7e5b..13a8ac1e0 100644
--- a/source/CraftingRecipes.cpp
+++ b/source/CraftingRecipes.cpp
@@ -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;