Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 24, 2008, 12:43:13 AM (16 years ago)
Author:
rgrieder
Message:

Simplified CommandLineArgument by using the new MultiType.
That also enables to get a cmd argument even if you don't know the exact type. It simply gets converted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/gamestates/GSDedicated.cc

    r1949 r2003  
    7070        timeFactor_ = 1.0f;
    7171
    72         int serverPort = CommandLine::getArgument<int>("port")->getValue();
    73         this->server_ = new network::Server(serverPort);
     72        this->server_ = new network::Server(CommandLine::getValue("port"));
    7473
    7574        // call the loader
Note: See TracChangeset for help on using the changeset viewer.