From 1e66fe2ba740f3002c0a0c5f6652c9962d8a346a Mon Sep 17 00:00:00 2001 From: Wanne Date: Thu, 9 Jul 2020 09:32:49 +0000 Subject: [PATCH] Multiplayer: - Disabled fragments, because this can crash the game when stepping on a mine, ... - Enabled rooftop climbing git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8854 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Soldier Control.cpp | 2 ++ TileEngine/Explosion Control.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Tactical/Soldier Control.cpp b/Tactical/Soldier Control.cpp index 0df1e81b..60619bf9 100644 --- a/Tactical/Soldier Control.cpp +++ b/Tactical/Soldier Control.cpp @@ -9679,11 +9679,13 @@ void SOLDIERTYPE::BeginSoldierClimbUpRoof( void ) return; } + /* if ( is_client ) { ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, MPClientMessage[43] ); return;//hayden disable climbing roof } + */ INT8 bNewDirection; UINT8 ubWhoIsThere; diff --git a/TileEngine/Explosion Control.cpp b/TileEngine/Explosion Control.cpp index 75265649..4625b94b 100644 --- a/TileEngine/Explosion Control.cpp +++ b/TileEngine/Explosion Control.cpp @@ -5278,6 +5278,10 @@ UINT8 DetermineFlashbangEffect( SOLDIERTYPE *pSoldier, INT8 ubExplosionDir, BOOL // fired at completely random trajectories. void FireFragments( UINT8 ubOwner, INT16 sX, INT16 sY, INT16 sZ, UINT16 usItem, UINT8 ubDirection ) { + // WANNE: Disable Fragments in a multiplayer game, because this can lead to crashes when stepping on mines, ... + if (is_networked) + return; + UINT16 usNumFragments = Explosive[Item[usItem].ubClassIndex].usNumFragments; UINT16 ubFragRange = Explosive[Item[usItem].ubClassIndex].ubFragRange;