BOOL emulate_bd = TRUE; /* unless non-BOULDERDASH elements found */
BOOL emulate_sb = TRUE; /* unless non-SOKOBAN elements found */
+ /* don't play tapes over network */
+ network_playing = (network && !tape.playing);
+
for(i=0; i<MAX_PLAYERS; i++)
{
struct PlayerInfo *player = &stored_player[i];
/* initial null action */
- if (network)
+ if (network_playing)
SendToServer_MovePlayer(MV_NO_MOVING);
/* main game synchronization point */
WaitUntilDelayReached(&action_delay, action_delay_value);
- if (network && !network_player_action_received)
+ if (network_playing && !network_player_action_received)
{
/*
#ifdef DEBUG
else
recorded_player_action = NULL;
- if (network)
+ if (network_playing)
SendToServer_MovePlayer(player_action);
for(i=0; i<MAX_PLAYERS; i++)
{
+ /*
int actual_player_action =
(network ? network_player_action[i] : player_action);
+ */
+
+ int actual_player_action =
+ (network_playing ? network_player_action[i] : player_action);
/*
int actual_player_action = network_player_action[i];
int game_status = MAINMENU;
int game_emulation = EMU_NONE;
+int network_playing = FALSE;
int button_status = MB_NOT_PRESSED, motion_status = FALSE;
int key_joystick_mapping = 0;
int global_joystick_status = JOYSTICK_STATUS;
extern int game_status;
extern int game_emulation;
+extern int network_playing;
extern int button_status, motion_status;
extern int key_joystick_mapping;
extern int global_joystick_status, joystick_status;
static int bots = 0;
static int onceonly = 0;
static int timetoplay = 0;
-static int daemon = 0;
+static int is_daemon = 0;
static int level = 5;
static int mode = -1;
static int paused = 0;
static void syserr(char *s)
{
- if (!daemon)
+ if (!is_daemon)
fprintf(stderr, "fatal: %s failed.\n", s);
exit(1);
}
unsigned int len;
struct protoent *tcpproto;
struct timeval tv;
- int daemon = 0;
+ int is_daemon = 0;
#ifndef NeXT
struct sigaction sact;
listen(lfd, 5);
- if (daemon)
+ if (is_daemon)
{
/* become a daemon, breaking all ties with the controlling terminal */
verbose = 0;