Loading

Paste #phxirpwc5

  1. Index: src/saveload/game_sl.cpp
  2. ===================================================================
  3. --- src/saveload/game_sl.cpp    (revision 26763)
  4. +++ src/saveload/game_sl.cpp    (working copy)
  5. @@ -143,6 +143,9 @@
  6.  
  7.  static void Load_GSTR()
  8.  {
  9. +       /* Only use saved strings for clients, otherwise use them directly from the script */
  10. +       if (!_networking || _network_server) return;
  11. +
  12.         delete _current_data;
  13.         _current_data = new GameStrings();
  14.  
  15. @@ -174,6 +177,9 @@
  16.  {
  17.         if (_current_data == NULL) return;
  18.  
  19. +       /* Only save strings for clients, if we are the server */
  20. +       if (!_networking || !_network_server) return;
  21. +
  22.         for (uint i = 0; i < _current_data->raw_strings.Length(); i++) {
  23.                 SlSetArrayIndex(i);
  24.                 SlAutolength((AutolengthProc *)SaveReal_GSTR, _current_data->raw_strings[i]);

Comments