Skip to content

[GEN] Some Command Lines are gated wrong #572

Open
@tomsons26

Description

@tomsons26

Area(s) with this issue?

The bug also exists in the original C&C Generals (Not Zero Hour)

Describe the issue

CommandLine.cpp
In Gen

#if !defined(_PLAYTEST) || (defined(_DEBUG) || defined(_INTERNAL))
Int parseNoLogo(char *args[], int)

...

#if !defined(_PLAYTEST) || (defined(_DEBUG) || defined(_INTERNAL))
	{ "-noaudio", parseNoAudio },
	{ "-map", parseMapName },
	{ "-nomusic", parseNoMusic },
	{ "-novideo", parseNoVideo },
	{ "-noLogOrCrash", parseNoLogOrCrash },
	{ "-FPUPreserve", parseFPUPreserve },

I discovered this when removing _PLAYTEST, this source file no longer compiled.

Steps to reproduce

.

Attachments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralsRelated Generals onlyMinorSeverity: Minor < Major < Critical < Blocker

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions