assembly fixes in vs2015

This commit is contained in:
zemonkamin 2026-03-08 03:15:17 -07:00 committed by GitHub
parent dc91a1dad0
commit a3c5604375
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()