#include "files.h"
#include "tape.h"
#include "joystick.h"
+#include "network.h"
void GetPlayerConfig()
{
}
}
-void PlayerActions(struct PlayerInfo *player, int player_action)
+void PlayerActions(struct PlayerInfo *player, byte player_action)
{
- static int stored_player_action[MAX_PLAYERS];
+ static byte stored_player_action[MAX_PLAYERS];
static int num_stored_actions = 0;
BOOL moved = FALSE, snapped = FALSE, bombed = FALSE;
int jx = player->jx, jy = player->jy;
}
}
-void GameActions(int player_action)
+void GameActions(byte player_action)
{
static long action_delay = 0;
long action_delay_value;
else
recorded_player_action = NULL;
+ SendToServer_MovePlayer(player_action);
+
for(i=0; i<MAX_PLAYERS; i++)
{
int actual_player_action = player_action;