Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9374


Ignore:
Timestamp:
Sep 6, 2012, 4:47:26 PM (12 years ago)
Author:
jo
Message:

Fixing logic error and removing preselection of the showall button.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/release2012/data/gui/scripts/HostMenu.lua

    r9373 r9374  
    3131        local window = winMgr:getWindow("orxonox/MultiplayerShowAllCheckbox")
    3232        local button = tolua.cast(window,"CEGUI::Checkbox")
    33         P.showAll = not P.showAll
     33        --P.showAll = not P.showAll
    3434        button:setSelected(P.showAll)
    3535    end
     
    6363        level = orxonox.LevelManager:getInstance():getAvailableLevelListItem(index)
    6464        if level ~= nil then
    65             if P.showAll or not level:hasTag("test") or not level:hasTag("singleplayer") then
     65            if P.showAll or not level:hasTag("test") and not level:hasTag("singleplayer") then
    6666                table.insert(P.levelList, level)
    6767            end
Note: See TracChangeset for help on using the changeset viewer.