If ALLOW_BANDAGING_DURING_TRAVEL is set to TRUE, travelling mercs will bandage themselves if they bleed. This behaviour is off by default.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7772 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2015-03-07 15:53:25 +00:00
parent 62f0461f96
commit 68869f77b2
19 changed files with 610 additions and 444 deletions
+15 -2
View File
@@ -110,6 +110,7 @@
#include "Facilities.h"
// HEADROCK HAM 4: Include Militia Squads for Manual Militia Restrictions toggle.
#include "MilitiaSquads.h"
#include "Auto Bandage.h" // added by Flugente
#endif
#include "connect.h" //hayden
@@ -5243,8 +5244,7 @@ UINT32 MapScreenHandle(void)
// now do the warning box
DoMapMessageBox( MSG_BOX_BASIC_STYLE, pMapErrorString[ 4 ], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
}
fFirstTimeInMapScreen = FALSE;
if( gpCurrentTalkingFace != NULL )
@@ -5313,6 +5313,13 @@ UINT32 MapScreenHandle(void)
HandleStrategicTurn( );
// Flugente: bandaging during retreat
if ( RetreatBandagingPending() )
{
// now do the warning box
DoScreenIndependantMessageBox( TacticalStr[ATTEMPT_BANDAGE_DURING_TRAVEL], MSG_BOX_FLAG_OK, RetreatBandageCallback );
}
/*
// update cursor based on state
@@ -16774,3 +16781,9 @@ BOOLEAN CanGiveStrategicMilitiaMoveOrder( INT16 sMapX, INT16 sMapY )
return FALSE;
}
// Flugente: bandaging during retreat
void RetreatBandageCallback( UINT8 ubResult )
{
HandleRetreatBandaging( );
}