Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1538 for code/trunk/src/core


Ignore:
Timestamp:
Jun 4, 2008, 10:44:41 PM (16 years ago)
Author:
rgrieder
Message:
  • fixed a bug in cursorChanged in InGameConsole
  • prevented Ogre from displaying unnecessary exceptions when ogre.cfg is not present
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/input/KeyBinder.cc

    r1535 r1538  
    214214    std::ifstream infile;
    215215    infile.open("keybindings.ini");
    216     if (!infile.is_open())
     216    if (!infile)
    217217    {
    218218      ConfigFileManager::getSingleton()->setFile(CFT_Keybindings, "def_keybindings.ini");
    219219      ConfigFileManager::getSingleton()->save(CFT_Keybindings, "keybindings.ini");
    220220    }
    221     infile.close();
     221    else
     222      infile.close();
    222223    ConfigFileManager::getSingleton()->setFile(CFT_Keybindings, "keybindings.ini");
    223224
Note: See TracChangeset for help on using the changeset viewer.