X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=1bfe0100d1084c4214ad9cbaff4026f1456bf450;hb=7e68d10c8f4c814e532cc30f6fc721c269a99cb6;hp=14aac76926d268836c040e861edd09cf2e20d261;hpb=ce20797c3998436e5c54939ef2f56a4fe4a5b14d;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index 14aac769..1bfe0100 100644 --- a/src/game.c +++ b/src/game.c @@ -3330,6 +3330,10 @@ void InitGame() player->effective_action = 0; player->programmed_action = 0; + player->mouse_action.lx = 0; + player->mouse_action.ly = 0; + player->mouse_action.button = 0; + player->score = 0; player->score_final = 0; @@ -11509,14 +11513,9 @@ void GameActions_SP_Main() void GameActions_MM_Main() { - byte effective_action[MAX_PLAYERS]; boolean warp_mode = (tape.playing && tape.warp_forward && !tape.pausing); - int i; - - for (i = 0; i < MAX_PLAYERS; i++) - effective_action[i] = stored_player[i].effective_action; - GameActions_MM(effective_action, warp_mode); + GameActions_MM(local_player->mouse_action, warp_mode); } void GameActions_RND_Main()