Esempio n. 1
0
void FileList::select(const QModelIndex& index)
{
	enterWorld(map_item_model->entry(index.row()));

//	if (gStates.empty())
//		return;
//	gStates[gStates.size() - 1]->enter(map_item_model->entry(index.row()));
}
Esempio n. 2
0
void doLogin() {
	// Make sure the server is online by pinging it
	while( !ping_success ) {
		Packet ping( 0x25, 14 );
		send_queue.push( ping );
		SLEEP( 1000 );
	}

	while( !login_success ) {
		login();
		SLEEP( 2000 );
	}

	enterWorld( player_id );
	SLEEP( 2000 );
}