Skip to content

Skirmish select map menu do not save the last played mission map as the default selection. #457

Open
@AdrianeYves

Description

@AdrianeYves

The issue here is that testing mission maps with this kind of behavior is irritating at best.
I've been creating missions for ages, and this is one of the issues I really want to get fixed. Until now, this problem has persisted—yet it can easily be resolved with an edit to MapUtil.cpp.

//-------------------------------------------------------------------------------------------------
/** Validate a map */
//-------------------------------------------------------------------------------------------------
Bool isValidMap( AsciiString mapName, Bool isMultiplayer )
{
	if(!TheMapCache || mapName.isEmpty())
		return FALSE;
	TheMapCache->updateCache();

	mapName.toLower();
	MapCache::iterator it = TheMapCache->find(mapName);
	if (it != TheMapCache->end())
	{
		// if (isMultiplayer == it->second.m_isMultiplayer) -- commenting this out to make it work
		// {
			return TRUE;
		// }
	}

	return FALSE;
}  // end isValidMap

Please apply this fix thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is not working rightMajorSeverity: Minor < Major < Critical < Blocker

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions