Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 9, 2011, 12:37:21 AM (13 years ago)
Author:
landauf
Message:

Quick and dirty fix to un-singletonize WANDiscovery. It is now created on demand by the multiplayer menu. This delays the master server connection until we really need it (and avoids the annoying connection-failed error/warning during startup if the master server can't be reached).
Also removed some unneeded/commented functions related to WANDiscovery from Server.
Presumably won't collide with the changes in the masterserver2 branch, but needs some review.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/data/gui/scripts/MultiplayerMenu.lua

    r8079 r8832  
    117117        local listbox = winMgr:getWindow("orxonox/MultiplayerListbox")
    118118        CEGUI.toListbox(listbox):resetList()
    119         local discovery = orxonox.WANDiscovery:getInstance()
     119        local discovery = orxonox.WANDiscovery()
    120120        cout(0, "discovering.\n" )
    121121        discovery:discover()
Note: See TracChangeset for help on using the changeset viewer.