mirror of
https://github.com/electronicarts/CnC_Remastered_Collection.git
synced 2025-08-27 07:44:20 +02:00
August 12th Hotfix
Includes fix for infinite loop in FootClass::Detach
This commit is contained in:
@@ -2426,7 +2426,7 @@ BulletClass * TechnoClass::Fire_At(TARGET target, int which)
|
||||
}
|
||||
#else
|
||||
/*
|
||||
** Now need to reveal for any player that is the target. ST - 3/13/2019 5:43PM
|
||||
** Now need to reveal for any player (only humans in normal node) that is the target. ST - 3/13/2019 5:43PM
|
||||
*/
|
||||
|
||||
ObjectClass *obj = As_Object(target);
|
||||
@@ -2434,7 +2434,7 @@ BulletClass * TechnoClass::Fire_At(TARGET target, int which)
|
||||
HousesType tgt_owner = obj->Owner();
|
||||
|
||||
HouseClass *player = HouseClass::As_Pointer(tgt_owner);
|
||||
if (player != nullptr) {
|
||||
if (player != nullptr && (player->IsHuman || GameToPlay != GAME_NORMAL)) {
|
||||
if ((!Is_Owned_By_Player(player) && !Is_Discovered_By_Player(player)) || !Map[Coord_Cell(Center_Coord())].Is_Mapped(House)) {
|
||||
Map.Sight_From(player, Coord_Cell(Center_Coord()), 1, false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user