Fixed primitives, fixed a random crash in ActionStack.cpp, added a way to search wallpaers in theme folder before to search them in the default folder, improved the keyword to retrieve the highest power and toughness of creatures in play, now it's possibile to use "pwr:" and "ths:" instead of "power:" and "toughness:", so it's possibile to use this keyword in variable{} construct too.
This commit is contained in:
@@ -327,8 +327,9 @@ string GameStateMenu::loadRandomWallpaper()
|
||||
|
||||
vector<string> wallpapers;
|
||||
izfstream file;
|
||||
if (! JFileSystem::GetInstance()->openForRead(file, "graphics/wallpapers.txt"))
|
||||
return wallpaper;
|
||||
if (! JFileSystem::GetInstance()->openForRead(file, "themes/" + options[Options::ACTIVE_THEME].str + "/wallpapers.txt")) // Added to search wallpaers in theme folder before default folder.
|
||||
if (! JFileSystem::GetInstance()->openForRead(file, "graphics/wallpapers.txt"))
|
||||
return wallpaper;
|
||||
|
||||
string s;
|
||||
while (std::getline(file, s))
|
||||
|
||||
Reference in New Issue
Block a user