mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-17 08:50:29 +02:00
Patch 1.01 Merge branch 'master' of https://github.com/electronicarts/CnC_Remastered_Collection
# Conflicts, ignored these upstream changes: # REDALERT/MiscAsm.cpp # REDALERT/WIN32LIB/DrawMisc.cpp
This commit is contained in:
+18
-13
@@ -1628,23 +1628,28 @@ ResultType AircraftClass::Take_Damage(int & damage, int distance, WarheadType wa
|
||||
*/
|
||||
switch (res) {
|
||||
case RESULT_DESTROYED:
|
||||
Kill_Cargo(source);
|
||||
Death_Announcement();
|
||||
new AnimClass(ANIM_FBALL1, Target_Coord());
|
||||
{
|
||||
Kill_Cargo(source);
|
||||
Death_Announcement();
|
||||
COORDINATE coord = Target_Coord();
|
||||
if (!(coord & HIGH_COORD_MASK)) {
|
||||
new AnimClass(ANIM_FBALL1, coord);
|
||||
}
|
||||
|
||||
/*
|
||||
** Parachute a survivor if possible.
|
||||
*/
|
||||
if (Class->IsCrew && Percent_Chance(90) && Map[Center_Coord()].Is_Clear_To_Move(SPEED_FOOT, true, false)) {
|
||||
InfantryClass * infantry = new InfantryClass(INFANTRY_E1, House->Class->House);
|
||||
if (infantry != NULL) {
|
||||
if (!infantry->Paradrop(Center_Coord())) {
|
||||
delete infantry;
|
||||
/*
|
||||
** Parachute a survivor if possible.
|
||||
*/
|
||||
if (Class->IsCrew && Percent_Chance(90) && Map[Center_Coord()].Is_Clear_To_Move(SPEED_FOOT, true, false)) {
|
||||
InfantryClass * infantry = new InfantryClass(INFANTRY_E1, House->Class->House);
|
||||
if (infantry != NULL) {
|
||||
if (!infantry->Paradrop(Center_Coord())) {
|
||||
delete infantry;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
delete this;
|
||||
delete this;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user