Exemple #1
0
void print_press_key()
{
	print_game_message(1, "PRESS KEY", 1);
#ifdef SOCKET
	if (game->mode & MODE_NETWORK)
		print_game_message(2, opponent_name, 0);
	else
#endif
	if (TWOPLAYER_MODE)
		print_game_message(2, "PRESS KEY", 1);
	setcurs_end();
}
Exemple #2
0
int sock_wait_pl2ingame()
{
	print_game_message(1, "WAIT", 1);
	game->next = NULL;
	while (!(sock_flags & CONNECTED))
		if (getkey_cancel())
			return 0;
	writebytes("N_G", 3);
	sock_flags = WAIT_PL2INGAME | (sock_flags & ~SAME_HEIGHT);
	while (!(sock_flags & PL2_IN_GAME)) {
		if ((sock_flags & (CONN_PROXY | WAIT_PL2INGAME))
				== CONN_PROXY)
			return sock_wait_pl2ingame();
		if (getkey_cancel())
			break;
	}
	sock_flags &= ~WAIT_PL2INGAME;
	return sock_flags & PL2_IN_GAME;
}