Remove AUTO_VAR macro and _toString function (#592)
This commit is contained in:
@@ -52,12 +52,9 @@ void AbstractContainerScreen::render(int xm, int ym, float a)
|
||||
glEnable(GL_RESCALE_NORMAL);
|
||||
|
||||
Slot *hoveredSlot = NULL;
|
||||
|
||||
AUTO_VAR(itEnd, menu->slots->end());
|
||||
for (AUTO_VAR(it, menu->slots->begin()); it != itEnd; it++)
|
||||
{
|
||||
Slot *slot = *it; //menu->slots->at(i);
|
||||
|
||||
for ( Slot *slot : *menu->slots )
|
||||
{
|
||||
renderSlot(slot);
|
||||
|
||||
if (isHovering(slot, xm, ym))
|
||||
@@ -150,10 +147,8 @@ void AbstractContainerScreen::renderSlot(Slot *slot)
|
||||
|
||||
Slot *AbstractContainerScreen::findSlot(int x, int y)
|
||||
{
|
||||
AUTO_VAR(itEnd, menu->slots->end());
|
||||
for (AUTO_VAR(it, menu->slots->begin()); it != itEnd; it++)
|
||||
for (Slot* slot : menu->slots )
|
||||
{
|
||||
Slot *slot = *it; //menu->slots->at(i);
|
||||
if (isHovering(slot, x, y)) return slot;
|
||||
}
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user