mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-23 19:32:46 +00:00
Implements skirmish maps, based on patch by sanderd17, fixes #1198. Skirmish maps are like scenarios, except the player can choose their civ during match setup. To create a skirmish map: place some skirmish entities for each player in Atlas (see templates/skirmish/* for examples), uncheck the player's civ in Atlas' player panel if desired, and save in the maps/skirmishes directory. The map will appear in match setup under the "Skirmish" match type.
Implements custom, VFS-based map load/save dialogs for Atlas (replaces broken native file dialogs), fixes #631, #889. Fixes map loading/saving to handle arbitrary subdirectories for better organization. Adds default settings to Atlas player panel, fixes #1872. Each setting now has a checkbox to choose whether it should be saved with the map (avoids writing lots of useless default data for each map). Adds map preview setting to Atlas, refs #1745. Cleans up and simplifies some duplicate code. Fixes optional serialization performance test. This was SVN commit r13938.
This commit is contained in:
@@ -421,7 +421,7 @@ CScriptVal LoadMapSettings(void* cbdata, VfsPath pathname)
|
||||
|
||||
CMapSummaryReader reader;
|
||||
|
||||
if (reader.LoadMap(pathname.ChangeExtension(L".xml")) != PSRETURN_OK)
|
||||
if (reader.LoadMap(pathname) != PSRETURN_OK)
|
||||
return CScriptVal();
|
||||
|
||||
return reader.GetMapSettings(guiManager->GetScriptInterface()).get();
|
||||
|
||||
Reference in New Issue
Block a user