Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7764 in orxonox.OLD


Ignore:
Timestamp:
May 22, 2006, 8:50:59 PM (18 years ago)
Author:
bensch
Message:

trunk: \n at the beginning won't infinit-loop anymore

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell.cc

    r7762 r7764  
    361361    this->bufferText.front()->setRelCoor2D(this->calculateLinePosition(0)- Vector2D(-1000,0));
    362362
    363 
    364363    // Move all lines one Entry up.
    365364    this->repositionText();
  • trunk/src/lib/shell/shell_buffer.cc

    r7762 r7764  
    116116      }
    117117
     118      if (inputBuffer[lineBegin] == '\n')
     119        lineBegin++, lineEnd++;
     120
    118121      if (this->buffer.size() > this->maxBufferSize)
    119122        this->buffer.pop_back();
  • trunk/src/lib/shell/shell_completion.cc

    r7475 r7764  
    223223    for (charIT = completionList.begin(); charIT != completionList.end(); charIT++)
    224224    {
    225       printf("== %s\n", (*charIT).name.c_str());
    226225      if ((*charIT).type != changeType)
    227226      {
  • trunk/src/story_entities/simple_game_menu.cc

    r7460 r7764  
    471471  {
    472472    this->menuSelector->setAbsCoorSoft2D(element->getAbsCoor2D() + Vector2D(0, element->getSizeY2D() *.5), bias);
    473     this->menuSelector->setSizeSoft2D(element->getSizeX2D(), element->getSizeY2D(), bias);
     473    this->menuSelector->setSizeSoft2D(element->getSizeX2D()*.7, element->getSizeY2D(), bias);
    474474  }
    475475  else
    476476  {
    477477    this->menuSelector->setAbsCoor2D(element->getAbsCoor2D() + Vector2D(0, element->getSizeY2D() *.5));
    478     this->menuSelector->setSize2D(element->getSizeX2D(), element->getSizeY2D());
     478    this->menuSelector->setSize2D(element->getSizeX2D()*.7, element->getSizeY2D());
    479479  }
    480480}
Note: See TracChangeset for help on using the changeset viewer.