mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
If Skyrider can't fly due to being out of fuel, warn the player
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8220 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -15495,6 +15495,16 @@ void ExplainWhySkyriderCantFly( void )
|
||||
return;
|
||||
}
|
||||
|
||||
// travelled too far?
|
||||
if ( gGameExternalOptions.fAlternativeHelicopterFuelSystem )
|
||||
{
|
||||
if ( iTotalHeliDistanceSinceRefuel > gHelicopterSettings.ubHelicopterDistanceWithoutRefuel )
|
||||
{
|
||||
DoMapMessageBox( MSG_BOX_BASIC_STYLE, pHelicopterRepairRefuelStrings[STR_HELI_TOOFAR_ERROR], MAP_SCREEN, MSG_BOX_FLAG_OK, MapScreenDefaultOkBoxCallback );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// no explainable reason
|
||||
}
|
||||
|
||||
|
||||
@@ -690,6 +690,8 @@ enum
|
||||
STR_HELI_RR_REPAIR_FINISHED,
|
||||
STR_HELI_RR_REFUEL_FINISHED,
|
||||
|
||||
STR_HELI_TOOFAR_ERROR,
|
||||
|
||||
TEXT_NUM_STR_HELI_REPAIRS,
|
||||
};
|
||||
|
||||
|
||||
@@ -4114,6 +4114,8 @@ STR16 pHelicopterRepairRefuelStrings[]=
|
||||
L"直升机已经拆卸。请等到修理完成。",
|
||||
L"修理完成。直升机已可使用。",
|
||||
L"直升机已加满油。",
|
||||
|
||||
L"Helicopter has exceeded maximum range!", // TODO.Translate
|
||||
};
|
||||
|
||||
STR16 sMapLevelString[] =
|
||||
|
||||
@@ -4113,6 +4113,8 @@ STR16 pHelicopterRepairRefuelStrings[]=
|
||||
L"Helicopter is currently disassembled. Wait until repairs are finished.",
|
||||
L"Repairs completed. Helicopter is available again.",
|
||||
L"Helicopter is fully refueled.",
|
||||
|
||||
L"Helicopter has exceeded maximum range!", // TODO.Translate
|
||||
};
|
||||
|
||||
STR16 sMapLevelString[] =
|
||||
|
||||
@@ -4111,6 +4111,8 @@ STR16 pHelicopterRepairRefuelStrings[]=
|
||||
L"Helicopter is currently disassembled. Wait until repairs are finished.",
|
||||
L"Repairs completed. Helicopter is available again.",
|
||||
L"Helicopter is fully refueled.",
|
||||
|
||||
L"Helicopter has exceeded maximum range!",
|
||||
};
|
||||
|
||||
STR16 sMapLevelString[] =
|
||||
|
||||
@@ -4117,6 +4117,8 @@ STR16 pHelicopterRepairRefuelStrings[]=
|
||||
L"L'hélicoptère est actuellement démonté. Attendez jusqu'à ce que les réparations soient terminées.",
|
||||
L"Les réparations sont terminées. L'hélicoptère est à nouveau disponible.",
|
||||
L"L'hélicoptère est complètement ravitaillé.",
|
||||
|
||||
L"Helicopter has exceeded maximum range!", // TODO.Translate
|
||||
};
|
||||
|
||||
STR16 sMapLevelString[] =
|
||||
|
||||
@@ -4116,6 +4116,8 @@ STR16 pHelicopterRepairRefuelStrings[]=
|
||||
L"Helicopter is currently disassembled. Wait until repairs are finished.",
|
||||
L"Repairs completed. Helicopter is available again.",
|
||||
L"Helicopter is fully refueled.",
|
||||
|
||||
L"Helicopter has exceeded maximum range!", // TODO.Translate
|
||||
};
|
||||
|
||||
STR16 sMapLevelString[] =
|
||||
|
||||
@@ -4107,6 +4107,8 @@ STR16 pHelicopterRepairRefuelStrings[]=
|
||||
L"Helicopter is currently disassembled. Wait until repairs are finished.",
|
||||
L"Repairs completed. Helicopter is available again.",
|
||||
L"Helicopter is fully refueled.",
|
||||
|
||||
L"Helicopter has exceeded maximum range!", // TODO.Translate
|
||||
};
|
||||
|
||||
STR16 sMapLevelString[] =
|
||||
|
||||
@@ -4118,6 +4118,8 @@ STR16 pHelicopterRepairRefuelStrings[]=
|
||||
L"Helikopter jest obecnie rozmontowany. Zaczekaj aż naprawa zostanie ukończona.",
|
||||
L"Helikopter jest znów dostępny do lotu.",
|
||||
L"Helicopter jest zatankowany do pełna.",
|
||||
|
||||
L"Helicopter has exceeded maximum range!", // TODO.Translate
|
||||
};
|
||||
|
||||
STR16 sMapLevelString[] =
|
||||
|
||||
@@ -4111,6 +4111,8 @@ STR16 pHelicopterRepairRefuelStrings[]=
|
||||
L"Вертолет разобран. Подождите, пока не закончится его ремонт.",
|
||||
L"Ремонт закончен. Вертолет снова доступен.",
|
||||
L"Вертолет полностью заправлен.",
|
||||
|
||||
L"Helicopter has exceeded maximum range!", // TODO.Translate
|
||||
};
|
||||
|
||||
STR16 sMapLevelString[] =
|
||||
|
||||
Reference in New Issue
Block a user