1
0
Fork 0

remove two checks that were only useful during development; fix typo

This commit is contained in:
mfranz 2005-12-06 18:46:39 +00:00
parent 5fa3420e36
commit eb68e9ad36
2 changed files with 2 additions and 10 deletions

View file

@ -387,9 +387,6 @@ FGMenuBar::make_map(const SGPropertyNode * node)
if (!(obj->getType() & PUCLASS_ONESHOT))
continue;
if (!obj->getLegend())
continue;
std::ostringstream menu;
menu << base << "/menu[" << menu_index << "]";
SGPropertyNode *prop = fgGetNode(menu.str().c_str());
@ -411,13 +408,8 @@ FGMenuBar::make_map(const SGPropertyNode * node)
// don't know yet how many will be usable; so we collect first
vector<puObject *> e;
for (puObject *me = ((puGroup *)popup)->getFirstChild();
me; me = me->getNextObject()) {
if (!me->getLegend())
continue;
me; me = me->getNextObject())
e.push_back(me);
}
for (unsigned int i = 0; i < e.size(); i++) {
std::ostringstream item;

View file

@ -112,7 +112,7 @@ private:
// Create a property-path -> puObject map for menu node
void make_map(const SGPropertyNode * node);
// Add <enabled> listener that enables/disabled menu entries.
// Add <enabled> listener that enables/disables menu entries.
void add_enabled_listener(SGPropertyNode * node);
// Is the menu visible?