if (key_status == KEY_PRESSED)
{
if (network_playing)
- local_player->action |= key_action;
+ local_player->potential_action |= key_action;
else
stored_player[pnr].action |= key_action;
}
else
{
if (network_playing)
- local_player->action &= ~key_action;
+ local_player->potential_action &= ~key_action;
else
stored_player[pnr].action &= ~key_action;
}
return;
}
- /*
- if (tape.pausing || AllPlayersGone)
- {
- int i;
-
- for (i=0; i<MAX_PLAYERS; i++)
- stored_player[i].action = 0;
- }
- */
-
HandleGameActions();
break;
player->active = FALSE;
player->action = 0;
+ player->potential_action = 0;
player->score = 0;
player->gems_still_needed = level.edelsteine;
recorded_player_action = (tape.playing ? TapePlayAction() : NULL);
if (network_playing)
- SendToServer_MovePlayer(local_player->action);
+ SendToServer_MovePlayer(local_player->potential_action);
for(i=0; i<MAX_PLAYERS; i++)
{
int index_nr, client_nr, element_nr;
- byte action;
+ byte action; /* action from server or for local playing */
+ byte potential_action; /* must go to network server first */
char login_name[MAX_NAMELEN];
char alias_name[MAX_NAMELEN];