mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
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:
+15
-2
@@ -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( );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user