[Orxonox-commit 4703] r9374 - code/branches/release2012/data/gui/scripts
jo at orxonox.net
jo at orxonox.net
Thu Sep 6 16:47:27 CEST 2012
Author: jo
Date: 2012-09-06 16:47:26 +0200 (Thu, 06 Sep 2012)
New Revision: 9374
Modified:
code/branches/release2012/data/gui/scripts/HostMenu.lua
Log:
Fixing logic error and removing preselection of the showall button.
Modified: code/branches/release2012/data/gui/scripts/HostMenu.lua
===================================================================
--- code/branches/release2012/data/gui/scripts/HostMenu.lua 2012-09-06 14:40:00 UTC (rev 9373)
+++ code/branches/release2012/data/gui/scripts/HostMenu.lua 2012-09-06 14:47:26 UTC (rev 9374)
@@ -30,7 +30,7 @@
if P.showAll ~= orxonox.GUIManager:inDevMode() then
local window = winMgr:getWindow("orxonox/MultiplayerShowAllCheckbox")
local button = tolua.cast(window,"CEGUI::Checkbox")
- P.showAll = not P.showAll
+ --P.showAll = not P.showAll
button:setSelected(P.showAll)
end
@@ -62,7 +62,7 @@
while index < size do
level = orxonox.LevelManager:getInstance():getAvailableLevelListItem(index)
if level ~= nil then
- if P.showAll or not level:hasTag("test") or not level:hasTag("singleplayer") then
+ if P.showAll or not level:hasTag("test") and not level:hasTag("singleplayer") then
table.insert(P.levelList, level)
end
end
More information about the Orxonox-commit
mailing list