Skip to content

Train Does not destroy all types of faction buildings when colliding #2317

@DrGoldFish1

Description

@DrGoldFish1

Prerequisites

  • I have searched for similar issues and confirmed this is not a duplicate

Game Version

  • Command & Conquer Generals
  • Command & Conquer Generals: Zero Hour
  • Other (please specify below)

Bug Description

The train is supposed to kill all the factions buildings when colliding with it.
But the train is unable to kill Supplycenters, internetcenters and fakebuildings.

RailroadGuideAIUpdate.cpp has the following in the code.

	if (other->isKindOf( KINDOF_FS_POWER ) ||
			other->isKindOf( KINDOF_FS_FACTORY ) ||
			other->isKindOf( KINDOF_FS_BASE_DEFENSE ) ||
			other->isKindOf( KINDOF_FS_TECHNOLOGY ) ||
			other->isKindOf( KINDOF_REBUILD_HOLE ) )
	{

We got to add the following 3 building types that are lacking.

		  other->isKindOf( KINDOF_FS_SUPPLY_CENTER ) ||
		  other->isKindOf( KINDOF_FS_INTERNET_CENTER) ||
		  other->isKindOf( KINDOF_FS_FAKE ) ||

But I am not really familiar with making pull requests and adding none retail compatible tags to it.
So if someone can make this pull request it would be awesome, thx.

Before

2026-02-16.17-32-55.mp4

After

2026-02-16.17-31-33.mp4

Reproduction Steps

  1. Start this map and watch

[Testing] Bugs v1.zip

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is not working right, typically is user facingMinorSeverity: Minor < Major < Critical < BlockerUnit AIIs related to unit behavior

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions