$put_perv_real = "/home/www/dvakompa-ru/dopol/"; ?>
Многопользовательская галактическая игра. Мне пришлось исправить код для его компиляции. Смотрите ниже инструкции. Игра может быть найдена здесь.
A multiplayer galactic game. I had to fix the code for compiling it. See below for instructions. The game can be found here.
Download the source code; then type:
./configure
You need to go to the src/directory and edit some files.
Edit the file conquest_game1.cpp and add (at the beginning):
#include
Edit the file conquest_game3.cpp and add (at the beginning):
#include
In the same file, you have to look for the following function:
void Conquest_Game::Game::timer(){ sleep(turn_timeout); pthread_mutex_lock(&commanding_permition_mutex); commanding_permition = false; pthread_mutex_unlock(&commanding_permition_mutex); char* mess = " dn "; send(socket_fd, mess, std::strlen(mess), 0); }
In the previous code, you have to remove the “std::” part (before the strlen function).
Edit the file conquest_server_client.hpp and remove (or comment) the following line (line 11):
class Conquest_Server::Server;
Edit finally the file conquest_server_server5.cpp and add (at the beginning):
#include
Now, you can type:
make