mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
assembly fixes in vs2015
This commit is contained in:
parent
dc91a1dad0
commit
a3c5604375
|
|
@ -5,6 +5,9 @@
|
||||||
#include "..\..\Minecraft.h"
|
#include "..\..\Minecraft.h"
|
||||||
#include "..\..\MultiplayerLocalPlayer.h"
|
#include "..\..\MultiplayerLocalPlayer.h"
|
||||||
#include "..\..\..\Minecraft.World\StringHelpers.h"
|
#include "..\..\..\Minecraft.World\StringHelpers.h"
|
||||||
|
#include <sstream>
|
||||||
|
#include <iterator>
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
UIControl_EnchantmentButton::UIControl_EnchantmentButton()
|
UIControl_EnchantmentButton::UIControl_EnchantmentButton()
|
||||||
{
|
{
|
||||||
|
|
@ -201,7 +204,10 @@ UIControl_EnchantmentButton::EnchantmentNames::EnchantmentNames()
|
||||||
{
|
{
|
||||||
wstring allWords = L"the elder scrolls klaatu berata niktu xyzzy bless curse light darkness fire air earth water hot dry cold wet ignite snuff embiggen twist shorten stretch fiddle destroy imbue galvanize enchant free limited range of towards inside sphere cube self other ball mental physical grow shrink demon elemental spirit animal creature beast humanoid undead fresh stale ";
|
wstring allWords = L"the elder scrolls klaatu berata niktu xyzzy bless curse light darkness fire air earth water hot dry cold wet ignite snuff embiggen twist shorten stretch fiddle destroy imbue galvanize enchant free limited range of towards inside sphere cube self other ball mental physical grow shrink demon elemental spirit animal creature beast humanoid undead fresh stale ";
|
||||||
std::wistringstream iss(allWords);
|
std::wistringstream iss(allWords);
|
||||||
std::copy(std::istream_iterator< std::wstring, wchar_t, std::char_traits<wchar_t> >(iss), std::istream_iterator< std::wstring, wchar_t, std::char_traits<wchar_t> >(),std::back_inserter(words));
|
std::wstring word;
|
||||||
|
while (iss >> word) {
|
||||||
|
words.push_back(word);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wstring UIControl_EnchantmentButton::EnchantmentNames::getRandomName()
|
wstring UIControl_EnchantmentButton::EnchantmentNames::getRandomName()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue