Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Test Builds => Topic started by: karajorma on December 30, 2012, 04:52:04 am

Title: Multiplayer Pausing Test Build
Post by: karajorma on December 30, 2012, 04:52:04 am
Designed to fix Mantis 1262 (http://scp.indiegames.us/mantis/view.php?id=1262) but I can't test multi at the moment.

I need to some people to try out this build (http://fs2downloads.com/Misc-Downloads/Builds/Multi_Pause_Build.7z) and see if they can reproduce the bug on it. Tell me if you spot any other weird behaviour after unpausing too as I told the game to not read any of the ship controls while paused not just the fire all the missiles key.

EDIT : Forgot to add the patch.

Code: [Select]
Index: code/freespace2/freespace.cpp
===================================================================
--- code/freespace2/freespace.cpp (revision 9476)
+++ code/freespace2/freespace.cpp (working copy)
@@ -4378,7 +4378,9 @@
 
  if( (!popup_running_state()) && (!popupdead_is_active()) ){
  game_process_keys();
- read_player_controls( Player_obj, flFrametime);
+ if(gameseq_get_state()!= GS_STATE_MULTI_PAUSED){
+ read_player_controls( Player_obj, flFrametime);
+ }
  }
 
  // if we're not the master, we may have to send the server-critical ship status button_info bits