Permalink
Browse files

Menu now loop

  • Loading branch information...
sardemff7 committed Sep 8, 2010
1 parent 1a1b1ef commit e5975ab1ad3333d79cfdcd19a2f620c0b3e92df4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/game/menu.cpp
View
@@ -188,7 +188,7 @@ Menu::up()
{
if ( --(this->current) < 1 )
// We cannot go upper than the first element
this->current = 1;
this->current = ( content.size() - 1 );
Display::displayMenu(this);
}
@@ -197,7 +197,7 @@ Menu::down()
{
if ( ++(this->current) == content.size() )
// We cannot go lower than the last element
this->current = ( content.size() - 1 );
this->current = 1;
Display::displayMenu(this);
}

0 comments on commit e5975ab

Please sign in to comment.