Skip to content

Commit

Permalink
Fix MISSION_AMBUSH to actually work.
Browse files Browse the repository at this point in the history
  • Loading branch information
OmniBlade committed Jun 20, 2024
1 parent d8a43c9 commit 610695f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions redalert/techno.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const char* NewName[] = {
"Fire Ant",
"Feuer-Ameise",
"Queen Ant",
"Ameisenk”nigin",
"Ameisenknigin",
"ATS",
"Angriffs-U-Boot",
"Tesla Tank",
Expand All @@ -188,7 +188,7 @@ const char* NewName[] = {
"Scout Ant",
"Fourmi de Reconnaissance",
"Warrior Ant",
"Fourmi GuerriŠre",
"Fourmi Guerrire",
"Fire Ant",
"Fourmi Lance-Flammes",
"Queen Ant",
Expand All @@ -204,11 +204,11 @@ const char* NewName[] = {
"Stavros",
"Stavros",
"F-A Longbow",
"HAA (H‚licoptŠre d'Assaut Avanc‚)",
"HAA (Hlicoptre d'Assaut Avanc)",
"Civilian Specialist",
"Sp‚cialiste Civil",
"Spcialiste Civil",
"Alloy Facility",
"Usine M‚tallurgique",
"Usine Mtallurgique",
NULL,
};

Expand Down Expand Up @@ -775,7 +775,7 @@ bool TechnoClass::Revealed(HouseClass* house)
** An enemy object that is discovered will go into hunt mode if
** its current mission is to ambush.
*/
if (!house->IsHuman && Mission == MISSION_AMBUSH) {
if (!House->IsHuman && Mission == MISSION_AMBUSH) {
Assign_Mission(MISSION_HUNT);
}

Expand Down
2 changes: 1 addition & 1 deletion tiberiandawn/techno.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ bool TechnoClass::Revealed(HouseClass* house)
** An enemy object that is discovered will go into hunt mode if
** its current mission is to ambush.
*/
if (!house->IsHuman && Mission == MISSION_AMBUSH) {
if (!House->IsHuman && Mission == MISSION_AMBUSH) {
Assign_Mission(MISSION_HUNT);
}

Expand Down

0 comments on commit 610695f

Please sign in to comment.