| 413 | } |
| 414 | |
| 415 | void Host::RunLevelCommand( const CommandsArguments& args ) |
| 416 | { |
| 417 | if( args.empty() ) |
| 418 | { |
| 419 | Log::Info( "Expected map number" ); |
| 420 | return; |
| 421 | } |
| 422 | |
| 423 | unsigned int map_number= std::atoi( args.front().c_str() ); |
| 424 | |
| 425 | DifficultyType difficulty= Difficulty::Normal; |
| 426 | if( args.size() >= 2u ) |
| 427 | difficulty= DifficultyNumberToDifficulty( std::atoi( args[1].c_str() ) ); |
| 428 | |
| 429 | DoRunLevel( map_number, difficulty ); |
| 430 | } |
| 431 | |
| 432 | void Host::ConnectCommand( const CommandsArguments& args ) |
| 433 | { |
nothing calls this directly
no test coverage detected