Fixes some bugs related to deleting saved games (in particular, load/delete was broken if the file was deleted externally while the game was running).

Adds saved game directory to the hotload watch list.
Logs error instead of crashing when saved game is not found.
Changes Atlas double-click selection to only pick units from the same
player.

This was SVN commit r11332.
This commit is contained in:
historic_bruno
2012-03-14 00:23:28 +00:00
parent e57730ecce
commit 4eec2bf5d2
5 changed files with 32 additions and 12 deletions
-1
View File
@@ -213,7 +213,6 @@ CScriptVal StartSavedGame(void* cbdata, std::wstring name)
CScriptValRooted metadata;
std::string savedState;
Status err = SavedGames::Load(name, guiManager->GetScriptInterface(), metadata, savedState);
WARN_IF_ERR(err);
if (err < 0)
return CScriptVal();