diff --git a/Multiplayer/client.cpp b/Multiplayer/client.cpp index 9c2e1d57..07b7b40f 100644 --- a/Multiplayer/client.cpp +++ b/Multiplayer/client.cpp @@ -881,7 +881,11 @@ void recieveAI (RPCParameters *rpcParameters) new_standard_data.bMedical = send_inv->standard_data.bMedical; new_standard_data.bMorale = send_inv->standard_data.bMorale; new_standard_data.bOrders = send_inv->standard_data.bOrders; - memcpy( new_standard_data.PADDINGSLOTS, send_inv->standard_data.PADDINGSLOTS, sizeof( INT8 ) * 14 ); + + // WANNE - MP: I had to remove this line of code, because PADDINGSLOTS in the structure + // breaks the editor and leads to crashed of modifed maps! + //memcpy( new_standard_data.PADDINGSLOTS, send_inv->standard_data.PADDINGSLOTS, sizeof( INT8 ) * 14 ); + new_standard_data.bPatrolCnt = send_inv->standard_data.bPatrolCnt; new_standard_data.bSectorZ = send_inv->standard_data.bSectorZ; new_standard_data.bStrength = send_inv->standard_data.bStrength; diff --git a/Strategic/Queen Command.cpp b/Strategic/Queen Command.cpp index 02324e3d..3b49b535 100644 --- a/Strategic/Queen Command.cpp +++ b/Strategic/Queen Command.cpp @@ -1206,9 +1206,12 @@ void AddPossiblePendingEnemiesToBattle() static UINT8 ubPredefinedInsertionCode = 255; // haydent - if ((is_client && !is_server) || ENEMY_ENABLED==0) + if (is_networked) { - return; + if ((is_client && !is_server) || ENEMY_ENABLED==0) + { + return; + } } // check if no world is loaded diff --git a/Tactical/Soldier Create.h b/Tactical/Soldier Create.h index 35565889..ab32a81f 100644 --- a/Tactical/Soldier Create.h +++ b/Tactical/Soldier Create.h @@ -272,7 +272,6 @@ public: BOOLEAN fUseGivenVehicle; INT8 bUseGivenVehicleID; BOOLEAN fHasKeys; - INT8 PADDINGSLOTS[ 14 ]; // // New and OO stuff goes after here. Above this point any changes will goof up reading from files. diff --git a/Tactical/Tactical.vcproj b/Tactical/Tactical.vcproj index e1d763a1..290d45c5 100644 --- a/Tactical/Tactical.vcproj +++ b/Tactical/Tactical.vcproj @@ -333,7 +333,7 @@